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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1549
RA = 135.617, Dec = 20.8503
tmin = 640828801, tmax = 641088001
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='946406', job_status='RUN', time_executed='2021-08-30 21:28:07.053699', time_epoch_executed='1630384087.05' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946406

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946406/ft1_4FGL_J0902.4+2051_daily_bin1549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946406/ft2_4FGL_J0902.4+2051_daily_bin1549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946406/ft1_4FGL_J0902.4+2051_daily_bin1549.fits outfile=/scratch/kocevski/946406/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1549.fits ra=135.617 dec=20.8503 rad=12.0 tmin=640828801.0 tmax=641088001.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.36
user 2.86
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946406/ft1_filtered_4FGL_J0902.4+2051_daily_bin1549.fits" evtable="EVENTS" scfile=/scratch/kocevski/946406/ft2_4FGL_J0902.4+2051_daily_bin1549.fits sctable="SC_DATA" outfile=/scratch/kocevski/946406/ltcube_640828801_641088001_4FGL_J0902.4+2051_daily_bin1549.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/946406/ft2_4FGL_J0902.4+2051_daily_bin1549.fits
.....................!
real 12.69
user 12.02
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946406/ft1_filtered_4FGL_J0902.4+2051_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/946406/ft2_4FGL_J0902.4+2051_daily_bin1549.fits sctable="SC_DATA" expcube=/scratch/kocevski/946406/ltcube_640828801_641088001_4FGL_J0902.4+2051_daily_bin1549.fits outfile=/scratch/kocevski/946406/expmap_640828801_641088001_4FGL_J0902.4+2051_daily_bin1549.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/946406/ltcube_640828801_641088001_4FGL_J0902.4+2051_daily_bin1549.fits
.....................!
real 190.73
user 184.80
sys 5.43

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/946406/ft1_filtered_4FGL_J0902.4+2051_daily_bin1549.fits scfile=/scratch/kocevski/946406/ft2_4FGL_J0902.4+2051_daily_bin1549.fits outfile=/scratch/kocevski/946406/cmap_640828801_641088001_4FGL_J0902.4+2051_daily_bin1549.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 0.81
user 0.35
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946406/ft1_filtered_4FGL_J0902.4+2051_daily_bin1549.fits scfile=/scratch/kocevski/946406/ft2_4FGL_J0902.4+2051_daily_bin1549.fits outfile=/scratch/kocevski/946406/cmap_HighResolution_640828801_641088001_4FGL_J0902.4+2051_daily_bin1549.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 0.85
user 0.38
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/946406/ft1_filtered_4FGL_J0902.4+2051_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/946406/ft2_4FGL_J0902.4+2051_daily_bin1549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/946406/Model_4FGL_J0902.4+2051_daily_bin1549.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/946406/ft1_filtered_4FGL_J0902.4+2051_daily_bin1549.fits.....................!
real 75.84
user 73.64
sys 1.64

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/946406/ft1_filtered_4FGL_J0902.4+2051_daily_bin1549.fits', '/scratch/kocevski/946406/ft2_4FGL_J0902.4+2051_daily_bin1549.fits', expMap='/scratch/kocevski/946406/expmap_640828801_641088001_4FGL_J0902.4+2051_daily_bin1549.fits', expCube='/scratch/kocevski/946406/ltcube_640828801_641088001_4FGL_J0902.4+2051_daily_bin1549.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/946406/Model_4FGL_J0902.4+2051_daily_bin1549.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/946406/ft1_filtered_4FGL_J0902.4+2051_daily_bin1549.fits
Spacecraft file(s): /scratch/kocevski/946406/ft2_4FGL_J0902.4+2051_daily_bin1549.fits
Exposure map: /scratch/kocevski/946406/expmap_640828801_641088001_4FGL_J0902.4+2051_daily_bin1549.fits
Exposure cube: /scratch/kocevski/946406/ltcube_640828801_641088001_4FGL_J0902.4+2051_daily_bin1549.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/946406/Model_4FGL_J0902.4+2051_daily_bin1549.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) = 9147.52701401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6425       1.0000         .10000E-03   10000.    
     2 'norm      '    .63493       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5810       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .47901       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.491       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14786E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3895       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4443       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4527       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    75.022       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .61661       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3058       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.

 FCN=   9147.525     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1734 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6407        16.065        .36265E-02    .33130E-03
   2  norm          .63526        .89407        .18684E-01    .24986E-02
   3  Prefactor     .10000E-03    3.4903        .90712E-02** at limit **
   4  Prefactor     2.5811        2.7813        .63507E-02    .27672E-04
   5  Prefactor     .10000E-03    6.3534        .90712E-02** at limit **
   6  norm          .47906        .41758        .11185E-01    .23444E-02
   7  Prefactor     14.490        9.2979        .26304E-02    .99051E-04
   8  Prefactor     .10000E-03    9.9921        .90712E-02** at limit **
   9  norm          .10003E-03    3.0057        .90712E-01** at limit **
  10  norm          .10006E-03    20.935        .90712E-02** at limit **
  11  norm          1.3896        .94100        .92179E-02   -.39334E-02
  12  Prefactor     .10009E-03    15.888        .90712E-02** at limit **
  13  Prefactor     4.4445        2.8407        .47753E-02    .23819E-03
  14  Prefactor     7.4531        15.286        .36728E-02    .10160E-02
  15  Prefactor     .10001E-03    30.970        .90712E-02** at limit **
  16  Prefactor     75.021        40.020        .11589E-02    .98363E-03
  17  Normalizat    .61653        .13960        .65802E-01   -.55785E-04
  18  Prefactor     1.3059        .12869        .32509E-01    .15098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.64072
  norm       = 0.635265
  Prefactor  = 0.0001
  Prefactor  = 2.5811
  Prefactor  = 0.0001
  norm       = 0.479056
  Prefactor  = 14.4902
  Prefactor  = 0.000100001
  norm       = 0.000100031
  norm       = 0.000100059
  norm       = 1.38963
  Prefactor  = 0.000100088
  Prefactor  = 4.44448
  Prefactor  = 7.45308
  Prefactor  = 0.000100007
  Prefactor  = 75.0214
  Normalizat = 0.616531
  Prefactor  = 1.30591
 **********
 **   18 **HESSE 
 **********

 FCN=   9147.525     FROM HESSE     STATUS=OK           252 CALLS     1986 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6407        15.141        .14506E-03   -1.5155    
   2  norm          .63526        .75321        .87537E-03   -1.5549    
   3  Prefactor     .10000E-03    3.5388        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5811        2.7781        .16088E-03   -1.5387    
   5  Prefactor     .10000E-03    6.3634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .47906        .39328        .54393E-03   -1.5570    
   7  Prefactor     14.490        9.2443        .10522E-03   -1.4946    
   8  Prefactor     .10000E-03    10.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10003E-03    13.454        .32193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10006E-03    21.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3896        .94570        .36989E-03   -1.5472    
  12  Prefactor     .10009E-03    15.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4445        2.8352        .12180E-03   -1.5286    
  14  Prefactor     7.4531        15.278        .73455E-03   -1.5162    
  15  Prefactor     .10001E-03    31.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     75.021        40.025        .46357E-04   -1.3973    
  17  Normalizat    .61653        .15786        .29118E-03   -1.0729    
  18  Prefactor     1.3059        .14644        .19632E-03   -.83131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34947e-08
Minuit parameter uncertainties:
  1  15.1485
  2  0.753225
  3  1.70535e-05
  4  2.77828
  5  8.68575e-06
  6  0.393284
  7  9.24518
  8  0.000178551
  9  0.00128571
  10  0.00223283
  11  0.94571
  12  0.00237126
  13  2.8353
  14  15.2861
  15  0.000954378
  16  40.0396
  17  0.157972
  18  0.146489
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.449e+01  9.245e+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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.306e+00  1.465e-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:  6.165e-01  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 135.617 20.850
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.57e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.14e-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) = 9147.43542818
delta logL = 0.0894868974683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9147.43018447
delta logL = 0.0947306118487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.756       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3483       1.0000          .0000       10.000    
     3 'Normalizat'    .60873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3103       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9147.430     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      307 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.763        11.012        .58418E-03    .76909E-04
   2  Index         2.3489        .52956        .62494E-02    .67358E-03
   3  Normalizat    .60874        .15497        .29291E-03   -.38813E-06
   4  Prefactor     1.3102        .14679        .19603E-03   -.68433E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7626
  Index      = 2.3489
  Normalizat = 0.608738
  Prefactor  = 1.3102
 **********
 **   18 **HESSE 
 **********

 FCN=   9147.430     FROM HESSE     STATUS=OK            27 CALLS      334 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.763        10.214        .11684E-03   -1.5022    
   2  Index         2.3489        .49112        .12499E-02   -.55886    
   3  Normalizat    .60874        .15496        .11716E-04   -1.0761    
   4  Prefactor     1.3102        .14682        .78413E-05   -.83004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91796e-12
Minuit parameter uncertainties:
  1  10.2155
  2  0.492227
  3  0.155068
  4  0.146864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946406': 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) = 9147.43018051
delta logL = 0.0947345659351

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.176e+01  1.022e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.349e+00  4.922e-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.310e+00  1.469e-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:  6.087e-01  1.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 135.617 20.850
Photon Index (Free Index): 2.35 +/- 0.49
Photon Flux (Free Index): 4.20e-08 +/- 2.85e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.08e-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/946406/cmap_HighResolution_640828801_641088001_4FGL_J0902.4+2051_daily_bin1549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.57e-08', energy_flux2='1.48e-05', photon_flux_error='2.27e-08', dlogl='9.47e-02', energy_flux='1.78e-05', photon_flux2='4.20e-08', job_status='DONE', time_completed='2021-08-30 21:38:21.878815', photon_index_error2='0.49', photon_index2='2.35', ts='4.51', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.62', time_epoch_completed='1630384701.88', return_code='0', job_id='946406', GAL2='1.31', EG2='0.61', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='2.85e-08', ts2='4.71', photon_index='2.15' WHERE bin_id='1549' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:38:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 946406: <4FGL_J0902.4+2051_daily_bin1549> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1549> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 21:25:39 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:25:41 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:25:41 2021
Terminated at Mon Aug 30 21:38:22 2021
Results reported at Mon Aug 30 21:38:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1549 135.617 20.8503 640828801 641088001 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 :                                   611.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

