/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 148 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0902.4+2051_daily_bin15
RA = 135.617, Dec = 20.8503
tmin = 243216001, tmax = 243475201
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='936473', job_status='RUN', time_executed='2021-08-30 20:58:30.399898', time_epoch_executed='1630382310.4' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936473

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936473/ft1_4FGL_J0902.4+2051_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936473/ft2_4FGL_J0902.4+2051_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936473/ft1_4FGL_J0902.4+2051_daily_bin15.fits outfile=/scratch/kocevski/936473/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin15.fits ra=135.617 dec=20.8503 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.75
user 1.18
sys 0.56

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936473/ft2_4FGL_J0902.4+2051_daily_bin15.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/936473/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/936473/ft1_filtered_4FGL_J0902.4+2051_daily_bin15.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.97
user 0.32
sys 0.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936473/ft1_filtered_4FGL_J0902.4+2051_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/936473/ft2_4FGL_J0902.4+2051_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/936473/ltcube_243216001_243475201_4FGL_J0902.4+2051_daily_bin15.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/936473/ft2_4FGL_J0902.4+2051_daily_bin15.fits
.....................!
real 13.64
user 12.84
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936473/ft1_filtered_4FGL_J0902.4+2051_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/936473/ft2_4FGL_J0902.4+2051_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/936473/ltcube_243216001_243475201_4FGL_J0902.4+2051_daily_bin15.fits outfile=/scratch/kocevski/936473/expmap_243216001_243475201_4FGL_J0902.4+2051_daily_bin15.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/936473/ltcube_243216001_243475201_4FGL_J0902.4+2051_daily_bin15.fits
.....................!
real 192.05
user 186.83
sys 4.84

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/936473/ft1_filtered_4FGL_J0902.4+2051_daily_bin15.fits scfile=/scratch/kocevski/936473/ft2_4FGL_J0902.4+2051_daily_bin15.fits outfile=/scratch/kocevski/936473/cmap_243216001_243475201_4FGL_J0902.4+2051_daily_bin15.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.99
user 0.38
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936473/ft1_filtered_4FGL_J0902.4+2051_daily_bin15.fits scfile=/scratch/kocevski/936473/ft2_4FGL_J0902.4+2051_daily_bin15.fits outfile=/scratch/kocevski/936473/cmap_HighResolution_243216001_243475201_4FGL_J0902.4+2051_daily_bin15.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.00
user 0.37
sys 0.62

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11073E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .69462       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7759       1.0000         .10000E-03   10000.    
     6 'norm      '    .65498       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8606       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0828       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0065       1.0000         .10000E-03   10000.    
    10 'norm      '    11.666       1.0000         .10000E-03   10000.    
    11 'norm      '    .42015       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .74579       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1507       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1913       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .89207       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=   8394.158     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1525 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.280       -.42909E-05** at limit **
   2  norm          .69362        .92325       -.31043E-06   -.15449E-02
   3  Prefactor     .10000E-03    6.2219       -.55417E-07** at limit **
   4  Prefactor     .10000E-03    3.3314       -.74439E-07** at limit **
   5  Prefactor     6.7836        20.949        .16855E-05   -.21432E-04
   6  norm          .65507        .48385       -.13191E-07    .28273E-04
   7  Prefactor     5.8597        7.9827       -.14368E-05   -.42252E-04
   8  Prefactor     7.0618        11.959       -.10908E-04   -.29277E-04
   9  norm          3.0087        4.8751       -.42761E-06   -.27864E-03
  10  norm          11.680        25.600       -.41275E-05    .31530E-05
  11  norm          .42139        .99927       -.81111E-07   -.11116E-02
  12  Prefactor     .10000E-03    22.633        .61945E-05** at limit **
  13  Prefactor     .74723        2.5314       -.12411E-05   -.16599E-02
  14  Prefactor     .10000E-03    13.409       -.49063E-07** at limit **
  15  Prefactor     .10000E-03    99.764        .49360E-05** at limit **
  16  Prefactor     8.0180        30.674       -.77509E-05   -.92850E-05
  17  Normalizat    1.1914        .14925        .25383E-05    .23712E-04
  18  Prefactor     .89186        .12854       -.53657E-07    .29920E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.693617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.78362
  norm       = 0.655068
  Prefactor  = 5.85968
  Prefactor  = 7.06179
  norm       = 3.00866
  norm       = 11.6797
  norm       = 0.421386
  Prefactor  = 0.0001
  Prefactor  = 0.747234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.01797
  Normalizat = 1.19145
  Prefactor  = 0.891862
 **********
 **   18 **HESSE 
 **********

 FCN=   8394.158     FROM HESSE     STATUS=OK           250 CALLS     1775 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .69362        .90647        .96687E-04   -1.5541    
   3  Prefactor     .10000E-03    6.3280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4002        .16325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7836        20.908        .15414E-03   -1.5187    
   6  norm          .65507        .47360        .52013E-04   -1.5546    
   7  Prefactor     5.8597        7.9604        .16589E-03   -1.5224    
   8  Prefactor     7.0618        11.643        .15073E-03   -1.5176    
   9  norm          3.0087        4.8699        .23408E-03   -1.5361    
  10  norm          11.680        25.582        .11729E-03   -1.5024    
  11  norm          .42139        .78773        .13433E-02   -1.5578    
  12  Prefactor     .10000E-03    22.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .74723        2.5681        .25857E-03   -1.5535    
  14  Prefactor     .10000E-03    13.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    100.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.0180        30.745        .14043E-03   -1.5142    
  17  Normalizat    1.1914        .17645        .23022E-03   -.86868    
  18  Prefactor     .89186        .15265        .23192E-03   -.96426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1404e-09
Minuit parameter uncertainties:
  1  4.58217e-05
  2  0.906487
  3  1.07934e-05
  4  1.46406e-05
  5  20.9306
  6  0.4736
  7  7.96179
  8  11.6466
  9  4.87058
  10  25.6058
  11  0.787754
  12  1.66152e-05
  13  2.56849
  14  7.51363e-06
  15  0.000150797
  16  30.8059
  17  0.176541
  18  0.152723
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  5.860e+00  7.962e+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:  8.919e-01  1.527e-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:  1.191e+00  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.98
Ra Dec: 135.617 20.850
Photon Flux Upper Limit: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936473/likelihoodResults_243216001_243475201_4FGL_J0902.4+2051_daily_bin15.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): 0
logL (Free Index) = 8393.69873599
delta logL = 0.459281212356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8393.68131162
delta logL = 0.476705580775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5591       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2256       1.0000          .0000       10.000    
     3 'Normalizat'    1.1421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91693       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=   8393.681     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      326 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5658        43.729        .63802E-02    .11859E-02
   2  Index         3.2220        3.1475        .10323        .30133E-03
   3  Normalizat    1.1426        .51116E-01    .52987E-01   -.97044E-04
   4  Prefactor     .91644        .40458E-01    .45220E-01   -.23400E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.56576
  Index      = 3.22204
  Normalizat = 1.14256
  Prefactor  = 0.916442
 **********
 **   18 **HESSE 
 **********

 FCN=   8393.681     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      359 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5658        78.721        .11473E-03   -1.5388    
   2  Index         3.2220        6.6058        .63845E-02   -.36355    
   3  Normalizat    1.1426        .24891        .23428E-03   -.88397    
   4  Prefactor     .91644        .19251        .22904E-03   -.95569    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.19342e-09
Minuit parameter uncertainties:
  1  28.4644
  2  5.94274
  3  0.249164
  4  0.192648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936473': 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): 102
logL (Free Index) = 8393.68129368
delta logL = 0.476723519725

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  2.566e+00  2.846e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  3.222e+00  5.943e+00  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:  9.164e-01  1.926e-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:  1.143e+00  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 135.617 20.850
Photon Index (Free Index): 3.22 +/- 5.94
Photon Flux (Free Index): 5.54e-08 +/- 1.14e-07
Energy Flux (Free Index): 1.01e-05 +/- 8.86e-06

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/936473/cmap_HighResolution_243216001_243475201_4FGL_J0902.4+2051_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='4.77e-01', photon_flux2='5.54e-08', job_status='DONE', time_completed='2021-08-30 21:08:48.366290', photon_index_error2='5.94', photon_index2='3.22', ts='0.98', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='6.81e-08', energy_flux_error2='8.86e-06', EG='1.19', time_epoch_completed='1630382928.37', return_code='0', job_id='936473', GAL2='0.92', EG2='1.14', return_code2='102', photon_flux_error2='1.14e-07', ts2='1.99', photon_index='2.15' WHERE bin_id='15' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:08:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 936473: <4FGL_J0902.4+2051_daily_bin15> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin15> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 30 20:55:39 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:55:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 20:55:42 2021
Terminated at Mon Aug 30 21:08:49 2021
Results reported at Mon Aug 30 21:08:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin15 135.617 20.8503 243216001 243475201 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 :                                   623.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            790 sec.

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

