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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1461
RA = 135.617, Dec = 20.8503
tmin = 618019201, tmax = 618278401
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='946247', job_status='RUN', time_executed='2021-08-30 21:26:12.448539', time_epoch_executed='1630383972.45' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946247/ft1_4FGL_J0902.4+2051_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946247/ft2_4FGL_J0902.4+2051_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946247/ft1_4FGL_J0902.4+2051_daily_bin1461.fits outfile=/scratch/kocevski/946247/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1461.fits ra=135.617 dec=20.8503 rad=12.0 tmin=618019201.0 tmax=618278401.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 6.17
user 4.86
sys 1.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946247/ft1_filtered_4FGL_J0902.4+2051_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/946247/ft2_4FGL_J0902.4+2051_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/946247/ltcube_618019201_618278401_4FGL_J0902.4+2051_daily_bin1461.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/946247/ft2_4FGL_J0902.4+2051_daily_bin1461.fits
.....................!
real 12.62
user 11.15
sys 1.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946247/ft1_filtered_4FGL_J0902.4+2051_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/946247/ft2_4FGL_J0902.4+2051_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/946247/ltcube_618019201_618278401_4FGL_J0902.4+2051_daily_bin1461.fits outfile=/scratch/kocevski/946247/expmap_618019201_618278401_4FGL_J0902.4+2051_daily_bin1461.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/946247/ltcube_618019201_618278401_4FGL_J0902.4+2051_daily_bin1461.fits
.....................!
real 191.55
user 185.11
sys 5.41

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/946247/ft1_filtered_4FGL_J0902.4+2051_daily_bin1461.fits scfile=/scratch/kocevski/946247/ft2_4FGL_J0902.4+2051_daily_bin1461.fits outfile=/scratch/kocevski/946247/cmap_618019201_618278401_4FGL_J0902.4+2051_daily_bin1461.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.70
user 0.37
sys 1.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946247/ft1_filtered_4FGL_J0902.4+2051_daily_bin1461.fits scfile=/scratch/kocevski/946247/ft2_4FGL_J0902.4+2051_daily_bin1461.fits outfile=/scratch/kocevski/946247/cmap_HighResolution_618019201_618278401_4FGL_J0902.4+2051_daily_bin1461.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.56
user 0.38
sys 1.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.781       1.0000         .10000E-03   10000.    
     2 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.866       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6350       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6786       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.151       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.722       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3913       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9024       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0744       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.4944       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=   6175.288     FROM MIGRAD    STATUS=CONVERGED    346 CALLS     1708 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.781        22.866        .31222E-06    .62892E-05
   2  norm          .10000E-03    .66852       -.47127E-07** at limit **
   3  Prefactor     .10000E-03    5.3847       -.35739E-07** at limit **
   4  Prefactor     13.867        10.399       -.53978E-07   -.22447E-04
   5  Prefactor     4.6332        91.217       -.71799E-05   -.10222E-04
   6  norm          2.6787        1.2632       -.82786E-07   -.23983E-03
   7  Prefactor     18.151        20.107        .23507E-06   -.64609E-05
   8  Prefactor     27.725        23.241        .21435E-05    .28610E-05
   9  norm          .10000E-03    5.9160       -.15707E-07** at limit **
  10  norm          .10000E-03    13.086        .18116E-06** at limit **
  11  norm          2.3912        2.0896       -.19460E-06   -.28013E-03
  12  Prefactor     .10000E-03    18.166        .12646E-05** at limit **
  13  Prefactor     .10000E-03    2.2223       -.11764E-06** at limit **
  14  Prefactor     .10000E-03    17.709       -.13471E-05** at limit **
  15  Prefactor     4.8884        346.23       -.60083E-04   -.76170E-06
  16  Prefactor     .10000E-03    28.549       -.89850E-07** at limit **
  17  Normalizat    1.0743        .22359        .27179E-06    .52944E-04
  18  Prefactor     1.4945        .19532        .70728E-06    .26686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7807
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8672
  Prefactor  = 4.6332
  norm       = 2.67868
  Prefactor  = 18.1514
  Prefactor  = 27.7249
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.39122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.8884
  Prefactor  = 0.0001
  Normalizat = 1.07429
  Prefactor  = 1.49453
 **********
 **   18 **HESSE 
 **********

 FCN=   6175.288     FROM HESSE     STATUS=OK           246 CALLS     1954 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.781        22.795        .73418E-04   -1.4616    
   2  norm          .10000E-03    .69659        .12492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4094        .17804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.867        10.398        .10757E-03   -1.4963    
   5  Prefactor     4.6332        91.742        .18694E-03   -1.5277    
   6  norm          2.6787        1.2597        .55549E-04   -1.5381    
   7  Prefactor     18.151        20.107        .94009E-04   -1.4856    
   8  Prefactor     27.725        23.388        .76089E-04   -1.4654    
   9  norm          .10000E-03    5.9349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3912        2.0847        .10279E-03   -1.5399    
  12  Prefactor     .10000E-03    18.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2424        .11431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8884        348.65        .18166E-03   -1.5266    
  16  Prefactor     .10000E-03    28.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0743        .26560        .31139E-03   -.90582    
  18  Prefactor     1.4945        .23215        .24493E-03   -.77693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39277e-11
Minuit parameter uncertainties:
  1  22.8021
  2  2.82082e-06
  3  5.5858e-06
  4  10.399
  5  41.3065
  6  1.25975
  7  20.1145
  8  23.3952
  9  2.8888e-06
  10  5.05808e-06
  11  2.08472
  12  2.10428e-06
  13  4.47936e-06
  14  6.88106e-06
  15  83.0744
  16  2.10462e-05
  17  0.265931
  18  0.232318
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.815e+01  2.011e+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.495e+00  2.323e-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.074e+00  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 135.617 20.850
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.47e-08 +/- 4.95e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 2.47e-05

TS (Fixed Index): 1.38
Ra Dec: 135.617 20.850
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946247/likelihoodResults_618019201_618278401_4FGL_J0902.4+2051_daily_bin1461.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) = 6174.50405158
delta logL = 0.784434630422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6174.50082541
delta logL = 0.787660798314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.057       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2645       1.0000          .0000       10.000    
     3 'Normalizat'    1.0915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4924       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=   6174.501     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.057        15.104        .24244E-02    .23669E-02
   2  Index         1.2644        .37837        .21537       -.83863E-04
   3  Normalizat    1.0912        .21290        .69890E-01    .17544E-04
   4  Prefactor     1.4925        .19388        .55439E-01    .53505E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0568
  Index      = 1.26441
  Normalizat = 1.09119
  Prefactor  = 1.49245
 **********
 **   18 **HESSE 
 **********

 FCN=   6174.501     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.057        20.533        .96977E-04   -1.4882    
   2  Index         1.2644        .56021        .87290E-02   -.84372    
   3  Normalizat    1.0912        .25283        .30924E-03   -.90035    
   4  Prefactor     1.4925        .23080        .24511E-03   -.77751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0066e-09
Minuit parameter uncertainties:
  1  20.5418
  2  0.562902
  3  0.253115
  4  0.230962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946247': 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) = 6174.50082375
delta logL = 0.787662456016

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.706e+01  2.054e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  1.264e+00  5.629e-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.492e+00  2.310e-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.091e+00  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 135.617 20.850
Photon Index (Free Index): 1.26 +/- 0.56
Photon Flux (Free Index): 1.50e-08 +/- 1.91e-08
Energy Flux (Free Index): 1.03e-04 +/- 1.26e-04

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/946247/cmap_HighResolution_618019201_618278401_4FGL_J0902.4+2051_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.47e-08', energy_flux2='1.03e-04', photon_flux_error='4.95e-08', dlogl='7.88e-01', energy_flux='2.23e-05', photon_flux2='1.50e-08', job_status='DONE', time_completed='2021-08-30 21:36:07.364973', photon_index_error2='0.56', photon_index2='1.26', ts='1.38', fit_tolerance='1e-08', GAL='1.49', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.26e-04', EG='1.07', time_epoch_completed='1630384567.37', return_code='0', job_id='946247', GAL2='1.49', EG2='1.09', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='1.91e-08', ts2='2.96', photon_index='2.15' WHERE bin_id='1461' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:36:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 946247: <4FGL_J0902.4+2051_daily_bin1461> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1461 135.617 20.8503 618019201 618278401 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            638 sec.

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

