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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1331
RA = 285.743, Dec = -67.8068
tmin = 584323201, tmax = 584582401
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='497940', job_status='RUN', time_executed='2021-09-21 22:23:06.559900', time_epoch_executed='1632288186.56' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497940

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497940/ft1_4FGL_J1902.9-6748_daily_bin1331.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497940/ft2_4FGL_J1902.9-6748_daily_bin1331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497940/ft1_4FGL_J1902.9-6748_daily_bin1331.fits outfile=/scratch/kocevski/497940/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1331.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=584323201.0 tmax=584582401.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.50
user 3.30
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/497940/ft2_4FGL_J1902.9-6748_daily_bin1331.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/497940/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1331.fits evtable="EVENTS" outfile="/scratch/kocevski/497940/ft1_filtered_4FGL_J1902.9-6748_daily_bin1331.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/497940/ft1_filtered_4FGL_J1902.9-6748_daily_bin1331.fits" evtable="EVENTS" scfile=/scratch/kocevski/497940/ft2_4FGL_J1902.9-6748_daily_bin1331.fits sctable="SC_DATA" outfile=/scratch/kocevski/497940/ltcube_584323201_584582401_4FGL_J1902.9-6748_daily_bin1331.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/497940/ft2_4FGL_J1902.9-6748_daily_bin1331.fits
.....................!
real 12.28
user 11.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497940/ft1_filtered_4FGL_J1902.9-6748_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/497940/ft2_4FGL_J1902.9-6748_daily_bin1331.fits sctable="SC_DATA" expcube=/scratch/kocevski/497940/ltcube_584323201_584582401_4FGL_J1902.9-6748_daily_bin1331.fits outfile=/scratch/kocevski/497940/expmap_584323201_584582401_4FGL_J1902.9-6748_daily_bin1331.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/497940/ltcube_584323201_584582401_4FGL_J1902.9-6748_daily_bin1331.fits
.....................!
real 191.82
user 186.06
sys 5.42

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/497940/ft1_filtered_4FGL_J1902.9-6748_daily_bin1331.fits scfile=/scratch/kocevski/497940/ft2_4FGL_J1902.9-6748_daily_bin1331.fits outfile=/scratch/kocevski/497940/cmap_584323201_584582401_4FGL_J1902.9-6748_daily_bin1331.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497940/ft1_filtered_4FGL_J1902.9-6748_daily_bin1331.fits scfile=/scratch/kocevski/497940/ft2_4FGL_J1902.9-6748_daily_bin1331.fits outfile=/scratch/kocevski/497940/cmap_HighResolution_584323201_584582401_4FGL_J1902.9-6748_daily_bin1331.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.993       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10625E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.388       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.163       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8480       1.0000         .10000E-03   10000.    
     7 'norm      '    .87592E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43892E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    22.676       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8510       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.729       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6859       1.0000         .10000E-03   10000.    
    16 'norm      '    101.87       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3575       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77877       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.

 FCN=   5007.776     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     2466 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.046        199.20        .11112E-03    .20461E-06
   2  norm          .10000E-03    3.1825        .12309E-02** at limit **
   3  norm          .10000E-03    55.897        .18142E-02** at limit **
   4  Prefactor     23.383        23.021        .82827E-04   -.31569E-05
   5  Prefactor     38.050        59.582        .64879E-04   -.11740E-04
   6  Prefactor     3.9503        105.96        .20573E-03   -.33709E-05
   7  norm          .10000E-03    9.4983        .11617E-02** at limit **
   8  Prefactor     .10000E-03    146.66        .22447    ** at limit **
   9  Prefactor     .10000E-03    97.198        .18142E-02** at limit **
  10  norm          22.633        40.398        .84115E-04   -.78391E-05
  11  Prefactor     .10000E-03    77.509        .18142E-02** at limit **
  12  norm          2.2943        33.806        .27086E-03   -.70933E-05
  13  Prefactor     6.8528        30.013        .15329E-03   -.20099E-04
  14  Prefactor     21.735        34.906        .85927E-04   -.15877E-05
  15  norm          1.6858        1.6410        .87358E-04   -.16658E-04
  16  norm          101.81        75.508        .19917E-03    .57651E-05
  17  Prefactor     .10000E-03    14.195        .18142E-02** at limit **
  18  Normalizat    1.3576        .38699        .35800E-03    .59702E-05
  19  Prefactor     .77878        .13249        .16104E-03    .26474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0456
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.3828
  Prefactor  = 38.0496
  Prefactor  = 3.95028
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 22.6334
  Prefactor  = 0.0001
  norm       = 2.29435
  Prefactor  = 6.85279
  Prefactor  = 21.7351
  norm       = 1.68582
  norm       = 101.815
  Prefactor  = 0.0001
  Normalizat = 1.35759
  Prefactor  = 0.778776
 **********
 **   18 **HESSE 
 **********

 FCN=   5007.776     FROM HESSE     STATUS=OK           258 CALLS     2724 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.046        199.27        .44449E-05   -1.4985    
   2  norm          .10000E-03    3.1826        .24619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    55.900        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.383        23.023        .33131E-05   -1.4740    
   5  Prefactor     38.050        59.428        .25952E-05   -1.4473    
   6  Prefactor     3.9503        105.35        .82291E-05   -1.5310    
   7  norm          .10000E-03    9.6822        .46469E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    148.37        .22181       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    97.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          22.633        40.390        .33646E-05   -1.4756    
  11  Prefactor     .10000E-03    77.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2943        33.720        .10835E-04   -1.5405    
  13  Prefactor     6.8528        29.944        .61314E-05   -1.5184    
  14  Prefactor     21.735        34.901        .34371E-05   -1.4775    
  15  norm          1.6858        1.6410        .34943E-05   -1.5448    
  16  norm          101.81        75.506        .79669E-05   -1.3686    
  17  Prefactor     .10000E-03    14.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3576        .38735        .14320E-04   -.81863    
  19  Prefactor     .77878        .13261        .64415E-05   -1.0052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99055e-12
Minuit parameter uncertainties:
  1  102.38
  2  3.02389e-07
  3  8.7158e-06
  4  23.0315
  5  59.521
  6  40.8799
  7  4.67089e-06
  8  0.00136743
  9  1.3786e-05
  10  40.4391
  11  4.27352e-05
  12  17.6031
  13  28.6737
  14  34.9342
  15  1.64104
  16  75.5771
  17  7.06098e-07
  18  0.388189
  19  0.132668
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  2.294e+00  1.760e+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.788e-01  1.327e-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.358e+00  3.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/497940/likelihoodResults_584323201_584582401_4FGL_J1902.9-6748_daily_bin1331.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) = 5007.73897924
delta logL = 0.0367910910309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5007.72593927
delta logL = 0.0498310607227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78293       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3276       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78923       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=   5007.726     FROM MIGRAD    STATUS=FAILED       104 CALLS      283 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76466        233.83        .13264E-02    .32093E-02
   2  alpha         4.3414        4.1154        .82027E-01    .16536E-03
   3  Normalizat    1.3116        .19020        .36326E-03   -.26539E-04
   4  Prefactor     .78919        .67397E-01    .16005E-03   -.36936E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5007.726     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      371 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76466        233.83        .19889E-03    .32093E-02
   2  alpha         4.3414        4.1154        .74139E-02    .16536E-03
   3  Normalizat    1.3116        .19020        .18790E-03   -.26539E-04
   4  Prefactor     .78919        .67397E-01    .47482E-04   -.36936E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5007.726     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      402 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76459        257.54        .26527E-03   -.18364E-03
   2  alpha         4.3414        4.6102        .16405E-01   -.38315E-05
   3  Normalizat    1.3116        .33279        .14530E-04   -.26602E-04
   4  Prefactor     .78919        .11678        .64021E-05   -.49366E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.764593
  alpha      = 4.34144
  Normalizat = 1.31158
  Prefactor  = 0.789192
 **********
 **   18 **HESSE 
 **********

 FCN=   5007.726     FROM HESSE     STATUS=OK            25 CALLS      427 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76459        20.595        .10611E-04   -1.5533    
   2  alpha         4.3414        3.2198        .65622E-03    .82799    
   3  Normalizat    1.3116        .39532        .29061E-05   -.83221    
   4  Prefactor     .78919        .13359        .12804E-05   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98552e-11
Minuit parameter uncertainties:
  1  7.93901
  2  6.9851
  3  0.396239
  4  0.133646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497940': 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) = 5007.72593594
delta logL = 0.0498343967438

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  7.646e-01  7.939e+00  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  4.341e+00  6.985e+00  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.892e-01  1.336e-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.312e+00  3.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 285.743 -67.807

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/497940/cmap_HighResolution_584323201_584582401_4FGL_J1902.9-6748_daily_bin1331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-05', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-09-21 22:35:17.687089', job_id='497940', GAL2='0.79', fit_tolerance='1e-08', EG2='1.31', EG='1.36', time_epoch_completed='1632288917.69', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.98e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1331' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:35:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 497940: <4FGL_J1902.9-6748_daily_bin1331> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1331> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 22:21:50 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:21:52 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:52 2021
Terminated at Tue Sep 21 22:35:18 2021
Results reported at Tue Sep 21 22:35:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1331 285.743 -67.8068 584323201 584582401 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 :                                   659.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            808 sec.

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

