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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1114
RA = 135.617, Dec = 20.8503
tmin = 528076801, tmax = 528336001
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='943325', job_status='RUN', time_executed='2021-08-30 21:20:27.839258', time_epoch_executed='1630383627.84' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943325

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943325/ft1_4FGL_J0902.4+2051_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943325/ft2_4FGL_J0902.4+2051_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943325/ft1_4FGL_J0902.4+2051_daily_bin1114.fits outfile=/scratch/kocevski/943325/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1114.fits ra=135.617 dec=20.8503 rad=12.0 tmin=528076801.0 tmax=528336001.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 7.26
user 3.18
sys 3.96

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/943325/ft1_filtered_4FGL_J0902.4+2051_daily_bin1114.fits" evtable="EVENTS" scfile=/scratch/kocevski/943325/ft2_4FGL_J0902.4+2051_daily_bin1114.fits sctable="SC_DATA" outfile=/scratch/kocevski/943325/ltcube_528076801_528336001_4FGL_J0902.4+2051_daily_bin1114.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/943325/ft2_4FGL_J0902.4+2051_daily_bin1114.fits
.....................!
real 16.15
user 11.59
sys 4.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943325/ft1_filtered_4FGL_J0902.4+2051_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/943325/ft2_4FGL_J0902.4+2051_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/943325/ltcube_528076801_528336001_4FGL_J0902.4+2051_daily_bin1114.fits outfile=/scratch/kocevski/943325/expmap_528076801_528336001_4FGL_J0902.4+2051_daily_bin1114.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/943325/ltcube_528076801_528336001_4FGL_J0902.4+2051_daily_bin1114.fits
.....................!
real 196.63
user 185.26
sys 10.38

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/943325/ft1_filtered_4FGL_J0902.4+2051_daily_bin1114.fits scfile=/scratch/kocevski/943325/ft2_4FGL_J0902.4+2051_daily_bin1114.fits outfile=/scratch/kocevski/943325/cmap_528076801_528336001_4FGL_J0902.4+2051_daily_bin1114.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 3.85
user 0.37
sys 3.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/943325/ft1_filtered_4FGL_J0902.4+2051_daily_bin1114.fits scfile=/scratch/kocevski/943325/ft2_4FGL_J0902.4+2051_daily_bin1114.fits outfile=/scratch/kocevski/943325/cmap_HighResolution_528076801_528336001_4FGL_J0902.4+2051_daily_bin1114.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 4.21
user 0.38
sys 3.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.296       1.0000         .10000E-03   10000.    
     2 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6205       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5157       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .83844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6911       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.586       1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    60.977       1.0000         .10000E-03   10000.    
    11 'norm      '    .25094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.153       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.527       1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.419       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .61751       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1772       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=   6569.847     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     1738 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.288        23.260        .60910E-07   -.15629E-04
   2  norm          .10000E-03    .35239       -.14251E-06** at limit **
   3  Prefactor     7.6215        8.3106        .15782E-06    .19004E-04
   4  Prefactor     2.5148        3.8791        .20821E-06    .96098E-05
   5  Prefactor     .10000E-03    23.771        .33490E-06** at limit **
   6  norm          .83840        .50853       -.18031E-08   -.34643E-04
   7  Prefactor     3.6906        7.7787        .38650E-06    .39990E-05
   8  Prefactor     11.587        11.975        .69919E-06   -.11143E-04
   9  norm          .10000E-03    4.8697        .12084E-06** at limit **
  10  norm          60.977        39.915       -.30066E-07   -.48191E-05
  11  norm          .25046        1.3644        .13574E-05   -.30425E-04
  12  Prefactor     28.154        49.210        .63553E-07   -.26102E-05
  13  Prefactor     .10000E-03    1.5794        .28192E-07** at limit **
  14  Prefactor     .10000E-03    16.621       -.37817E-07** at limit **
  15  Prefactor     41.479        58.069       -.32654E-06   -.55863E-04
  16  Prefactor     49.418        38.685        .42825E-07   -.10540E-04
  17  Normalizat    .61737        .16285       -.29830E-07   -.57199E-04
  18  Prefactor     1.1774        .14499       -.45647E-06   -.46861E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.2877
  norm       = 0.0001
  Prefactor  = 7.62151
  Prefactor  = 2.51483
  Prefactor  = 0.0001
  norm       = 0.838399
  Prefactor  = 3.6906
  Prefactor  = 11.587
  norm       = 0.0001
  norm       = 60.9767
  norm       = 0.25046
  Prefactor  = 28.1539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.4791
  Prefactor  = 49.4175
  Normalizat = 0.617367
  Prefactor  = 1.17741
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.847     FROM HESSE     STATUS=OK           246 CALLS     1984 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.288        23.206        .53464E-04   -1.4206    
   2  norm          .10000E-03    .35811        .46784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6215        8.3017        .14527E-03   -1.5156    
   4  Prefactor     2.5148        3.8619        .19168E-03   -1.5391    
   5  Prefactor     .10000E-03    23.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .83840        .51676        .43099E-04   -1.5525    
   7  Prefactor     3.6906        7.7547        .21022E-03   -1.5324    
   8  Prefactor     11.587        11.980        .58847E-03   -1.5027    
   9  norm          .10000E-03    4.9693        .17470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          60.977        39.890        .51383E-04   -1.4145    
  11  norm          .25046        1.3660        .17987E-03   -1.5608    
  12  Prefactor     28.154        49.206        .75506E-04   -1.4646    
  13  Prefactor     .10000E-03    1.6365        .19875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.479        58.032        .62205E-04   -1.4419    
  16  Prefactor     49.418        38.724        .57044E-04   -1.4301    
  17  Normalizat    .61737        .18491        .29314E-03   -1.0725    
  18  Prefactor     1.1774        .16509        .19967E-03   -.87029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11892e-11
Minuit parameter uncertainties:
  1  23.2099
  2  5.52966e-08
  3  8.30297
  4  3.86226
  5  1.77026e-05
  6  0.516766
  7  7.75685
  8  11.9823
  9  3.35085e-06
  10  39.907
  11  1.16964
  12  49.2775
  13  3.2953e-06
  14  1.22871e-06
  15  58.1115
  16  38.7435
  17  0.185094
  18  0.165161
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  3.691e+00  7.757e+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.177e+00  1.652e-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.174e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/943325/likelihoodResults_528076801_528336001_4FGL_J0902.4+2051_daily_bin1114.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) = 6569.63949211
delta logL = 0.207267951065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6569.63902715
delta logL = 0.207732909689

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8492       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5370       1.0000          .0000       10.000    
     3 'Normalizat'    .62459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1716       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=   6569.639     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      308 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8579        8.6905        .16605E-03   -.35259E-04
   2  Index         1.5376        .73686        .13294E-01   -.10632E-04
   3  Normalizat    .62461        .17837        .29154E-03    .71713E-04
   4  Prefactor     1.1716        .16448        .20004E-03    .78997E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.85789
  Index      = 1.53763
  Normalizat = 0.624608
  Prefactor  = 1.17158
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.639     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8579        8.7522        .66421E-05   -1.5224    
   2  Index         1.5376        .74228        .53176E-03   -.76491    
   3  Normalizat    .62461        .17849        .11662E-04   -1.0695    
   4  Prefactor     1.1716        .16460        .80015E-05   -.87211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78334e-11
Minuit parameter uncertainties:
  1  8.75414
  2  0.747624
  3  0.178653
  4  0.164668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943325': 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) = 6569.63902646
delta logL = 0.207733602413

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  5.858e+00  8.754e+00  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  1.538e+00  7.476e-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.172e+00  1.647e-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.246e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 135.617 20.850

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/943325/cmap_HighResolution_528076801_528336001_4FGL_J0902.4+2051_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-08-30 21:30:43.219963', job_id='943325', GAL2='1.17', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1630384243.22', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.08e-01', ts2='0.72', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1114' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:30:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 943325: <4FGL_J0902.4+2051_daily_bin1114> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1114> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Aug 30 21:16:02 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:16:04 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:16:04 2021
Terminated at Mon Aug 30 21:30:44 2021
Results reported at Mon Aug 30 21:30:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1114 135.617 20.8503 528076801 528336001 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 :                                   669.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            882 sec.

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

