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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1035
RA = 135.617, Dec = 20.8503
tmin = 507600001, tmax = 507859201
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='943220', job_status='RUN', time_executed='2021-08-30 21:16:27.463225', time_epoch_executed='1630383387.46' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943220/ft1_4FGL_J0902.4+2051_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943220/ft2_4FGL_J0902.4+2051_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943220/ft1_4FGL_J0902.4+2051_daily_bin1035.fits outfile=/scratch/kocevski/943220/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1035.fits ra=135.617 dec=20.8503 rad=12.0 tmin=507600001.0 tmax=507859201.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 4.23
user 3.34
sys 0.86

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/943220/ft2_4FGL_J0902.4+2051_daily_bin1035.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/943220/ft2_4FGL_J0902.4+2051_daily_bin1035.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/943220/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1035.fits evtable="EVENTS" outfile="/scratch/kocevski/943220/ft1_filtered_4FGL_J0902.4+2051_daily_bin1035.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 1.79
user 0.33
sys 1.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/943220/ft1_filtered_4FGL_J0902.4+2051_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/943220/ft2_4FGL_J0902.4+2051_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/943220/ltcube_507600001_507859201_4FGL_J0902.4+2051_daily_bin1035.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/943220/ft2_4FGL_J0902.4+2051_daily_bin1035.fits
.....................!
real 12.64
user 11.42
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943220/ft1_filtered_4FGL_J0902.4+2051_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/943220/ft2_4FGL_J0902.4+2051_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/943220/ltcube_507600001_507859201_4FGL_J0902.4+2051_daily_bin1035.fits outfile=/scratch/kocevski/943220/expmap_507600001_507859201_4FGL_J0902.4+2051_daily_bin1035.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/943220/ltcube_507600001_507859201_4FGL_J0902.4+2051_daily_bin1035.fits
.....................!
real 192.24
user 186.56
sys 5.18

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
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0902.4+2051 @ 135.617 20.8503

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/943220/ft1_filtered_4FGL_J0902.4+2051_daily_bin1035.fits scfile=/scratch/kocevski/943220/ft2_4FGL_J0902.4+2051_daily_bin1035.fits outfile=/scratch/kocevski/943220/cmap_507600001_507859201_4FGL_J0902.4+2051_daily_bin1035.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=135.617 yref=20.8503 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 1.26
user 0.37
sys 0.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/943220/ft1_filtered_4FGL_J0902.4+2051_daily_bin1035.fits scfile=/scratch/kocevski/943220/ft2_4FGL_J0902.4+2051_daily_bin1035.fits outfile=/scratch/kocevski/943220/cmap_HighResolution_507600001_507859201_4FGL_J0902.4+2051_daily_bin1035.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=135.617 yref=20.8503 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 1.27
user 0.37
sys 0.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/943220/ft1_filtered_4FGL_J0902.4+2051_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/943220/ft2_4FGL_J0902.4+2051_daily_bin1035.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/943220/Model_4FGL_J0902.4+2051_daily_bin1035.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 GAL_V02
Working on...
/scratch/kocevski/943220/ft1_filtered_4FGL_J0902.4+2051_daily_bin1035.fits.....................!
real 54.97
user 52.59
sys 2.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/943220/ft1_filtered_4FGL_J0902.4+2051_daily_bin1035.fits', '/scratch/kocevski/943220/ft2_4FGL_J0902.4+2051_daily_bin1035.fits', expMap='/scratch/kocevski/943220/expmap_507600001_507859201_4FGL_J0902.4+2051_daily_bin1035.fits', expCube='/scratch/kocevski/943220/ltcube_507600001_507859201_4FGL_J0902.4+2051_daily_bin1035.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/943220/Model_4FGL_J0902.4+2051_daily_bin1035.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0902.4+2051'

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  7.653e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.145e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/943220/ft1_filtered_4FGL_J0902.4+2051_daily_bin1035.fits
Spacecraft file(s): /scratch/kocevski/943220/ft2_4FGL_J0902.4+2051_daily_bin1035.fits
Exposure map: /scratch/kocevski/943220/expmap_507600001_507859201_4FGL_J0902.4+2051_daily_bin1035.fits
Exposure cube: /scratch/kocevski/943220/ltcube_507600001_507859201_4FGL_J0902.4+2051_daily_bin1035.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/943220/Model_4FGL_J0902.4+2051_daily_bin1035.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) = 5812.25703067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5156       1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0605       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.038       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .21120E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.487       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    84.946       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .83844       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2290       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5812.256     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1732 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5251        15.964       -.32938E-05   -.59757E-03
   2  norm          .10000E-03    .79602        .10346E-05** at limit **
   3  Prefactor     .10000E-03    1.5605        .54242E-07** at limit **
   4  Prefactor     .10000E-03    4.3394        .22447E-06** at limit **
   5  Prefactor     .10000E-03    33.282        .29593E-06** at limit **
   6  norm          1.0605        .61126        .12921E-08   -.21085E-03
   7  Prefactor     14.040        11.388        .35120E-07   -.24160E-04
   8  Prefactor     .10000E-03    14.692        .67631E-09** at limit **
   9  norm          .10000E-03    4.6407       -.14488E-05** at limit **
  10  norm          .10000E-03    23.554        .36571E-06** at limit **
  11  norm          .10000E-03    .38685        .17030E-07** at limit **
  12  Prefactor     .10000E-03    12.585        .24906E-06** at limit **
  13  Prefactor     10.487        3.8499       -.74420E-08    .80238E-04
  14  Prefactor     .92221        23.540       -.49980E-05    .42544E-03
  15  Prefactor     .10000E-03    20.944       -.26256E-06** at limit **
  16  Prefactor     84.915        55.579       -.54234E-06   -.19216E-03
  17  Normalizat    .83845        .18875        .42032E-06   -.36773E-03
  18  Prefactor     1.2290        .17270       -.82558E-06   -.45425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.52508
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06046
  Prefactor  = 14.04
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4874
  Prefactor  = 0.922205
  Prefactor  = 0.0001
  Prefactor  = 84.9155
  Normalizat = 0.838453
  Prefactor  = 1.22896
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.256     FROM HESSE     STATUS=OK           246 CALLS     1978 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5251        17.793        .13737E-03   -1.5124    
   2  norm          .10000E-03    1.3817        .11826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5625        .93010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.391        .30692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0605        .61470        .43243E-04   -1.5502    
   7  Prefactor     14.040        11.387        .10690E-03   -1.4958    
   8  Prefactor     .10000E-03    15.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.687        .29487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    23.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .38769        .46306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.487        3.8492        .87240E-04   -1.5060    
  14  Prefactor     .92221        98.792        .55908E-02   -1.5516    
  15  Prefactor     .10000E-03    20.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     84.915        55.843        .21793E-03   -1.3862    
  17  Normalizat    .83845        .21658        .26794E-03   -.98658    
  18  Prefactor     1.2290        .19791        .21193E-03   -.85445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02972e-08
Minuit parameter uncertainties:
  1  17.8038
  2  1.34734e-05
  3  2.467e-06
  4  0.000115602
  5  6.56999e-05
  6  0.614708
  7  11.3886
  8  2.57454e-05
  9  0.000457308
  10  0.000140242
  11  4.81542e-07
  12  8.61665e-05
  13  3.84931
  14  19.1214
  15  7.0616e-05
  16  55.8778
  17  0.216802
  18  0.198026
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.404e+01  1.139e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.145e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.229e+00  1.980e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  8.385e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.31
Ra Dec: 135.617 20.850
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.40e-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) = 5812.02250158
delta logL = 0.233219411772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5812.01867734
delta logL = 0.23704365209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.266       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5757       1.0000          .0000       10.000    
     3 'Normalizat'    .85930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2202       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   5812.019     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      256 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.272        14.101        .10604E-03    .88982E-05
   2  Index         1.5762        .74336        .11214E-01   -.11512E-04
   3  Normalizat    .85951        .21024        .26503E-03   -.37748E-05
   4  Prefactor     1.2202        .19760        .21265E-03    .82525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2716
  Index      = 1.57619
  Normalizat = 0.85951
  Prefactor  = 1.22021
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.019     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.272        14.388        .42418E-05   -1.4952    
   2  Index         1.5762        .75845        .44854E-03   -.75428    
   3  Normalizat    .85951        .21043        .10601E-04   -.97898    
   4  Prefactor     1.2202        .19778        .42530E-04   -.85712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74249e-11
Minuit parameter uncertainties:
  1  14.3915
  2  0.764031
  3  0.210626
  4  0.197904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943220': 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) = 5812.01867432
delta logL = 0.237046676207

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.427e+01  1.439e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  1.576e+00  7.640e-01  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.220e+00  1.979e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  8.595e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.78
Ra Dec: 135.617 20.850
Photon Index (Free Index): 1.58 +/- 0.76
Photon Flux (Free Index): 1.53e-08 +/- 2.37e-08
Energy Flux (Free Index): 3.76e-05 +/- 5.88e-05

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/943220/cmap_HighResolution_507600001_507859201_4FGL_J0902.4+2051_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='3.76e-05', photon_flux_error='2.80e-08', dlogl='2.37e-01', energy_flux='1.73e-05', photon_flux2='1.53e-08', job_status='DONE', time_completed='2021-08-30 21:25:08.654858', photon_index_error2='0.76', photon_index2='1.58', ts='5.31', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='5.88e-05', EG='0.84', time_epoch_completed='1630383908.65', return_code='0', job_id='943220', GAL2='1.22', EG2='0.86', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='2.37e-08', ts2='5.78', photon_index='2.15' WHERE bin_id='1035' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:25:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 943220: <4FGL_J0902.4+2051_daily_bin1035> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1035> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Aug 30 21:15:51 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:15:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 21:15:53 2021
Terminated at Mon Aug 30 21:25:09 2021
Results reported at Mon Aug 30 21:25:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1035 135.617 20.8503 507600001 507859201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0902.4+2051 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   521.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            558 sec.

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

