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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1390
RA = 135.617, Dec = 20.8503
tmin = 599616001, tmax = 599875201
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='946146', job_status='RUN', time_executed='2021-08-30 21:27:59.993665', time_epoch_executed='1630384079.99' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946146

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946146/ft1_4FGL_J0902.4+2051_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946146/ft2_4FGL_J0902.4+2051_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946146/ft1_4FGL_J0902.4+2051_daily_bin1390.fits outfile=/scratch/kocevski/946146/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1390.fits ra=135.617 dec=20.8503 rad=12.0 tmin=599616001.0 tmax=599875201.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.80
user 2.32
sys 1.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946146/ft1_filtered_4FGL_J0902.4+2051_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/946146/ft2_4FGL_J0902.4+2051_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/946146/ltcube_599616001_599875201_4FGL_J0902.4+2051_daily_bin1390.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/946146/ft2_4FGL_J0902.4+2051_daily_bin1390.fits
.....................!
real 14.19
user 12.40
sys 1.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946146/ft1_filtered_4FGL_J0902.4+2051_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/946146/ft2_4FGL_J0902.4+2051_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/946146/ltcube_599616001_599875201_4FGL_J0902.4+2051_daily_bin1390.fits outfile=/scratch/kocevski/946146/expmap_599616001_599875201_4FGL_J0902.4+2051_daily_bin1390.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/946146/ltcube_599616001_599875201_4FGL_J0902.4+2051_daily_bin1390.fits
.....................!
real 192.45
user 185.38
sys 6.19

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/946146/ft1_filtered_4FGL_J0902.4+2051_daily_bin1390.fits scfile=/scratch/kocevski/946146/ft2_4FGL_J0902.4+2051_daily_bin1390.fits outfile=/scratch/kocevski/946146/cmap_599616001_599875201_4FGL_J0902.4+2051_daily_bin1390.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.85
user 0.37
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946146/ft1_filtered_4FGL_J0902.4+2051_daily_bin1390.fits scfile=/scratch/kocevski/946146/ft2_4FGL_J0902.4+2051_daily_bin1390.fits outfile=/scratch/kocevski/946146/cmap_HighResolution_599616001_599875201_4FGL_J0902.4+2051_daily_bin1390.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.89
user 0.37
sys 1.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6785       1.0000         .10000E-03   10000.    
     2 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.002       1.0000         .10000E-03   10000.    
     5 'Prefactor '    107.77       1.0000         .10000E-03   10000.    
     6 'norm      '    .10396E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.545       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19255E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    52.857       1.0000         .10000E-03   10000.    
    11 'norm      '    .84563       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3950       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.377       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .67554       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1500       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=   1550.854     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1757 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65644        8088.4       -.34211E-03    .62105E-05
   2  norm          .10000E-03    5.9386        .28660E-05** at limit **
   3  Prefactor     .10000E-03    21.139        .32179E-06** at limit **
   4  Prefactor     14.002        22.244        .48162E-06    .60079E-04
   5  Prefactor     107.69        137.92       -.46353E-06    .30306E-04
   6  norm          .10000E-03    1.8584       -.16484E-05** at limit **
   7  Prefactor     12.547        23.009        .23972E-06    .11743E-03
   8  Prefactor     .10011E-03    307.47       -.10475E-04** at limit **
   9  norm          .10000E-03    12.553       -.65009E-06** at limit **
  10  norm          52.905        76.865       -.29908E-06   -.12641E-04
  11  norm          .84599        4.4124       -.13234E-05   -.25286E-03
  12  Prefactor     .10000E-03    69.060       -.12038E-05** at limit **
  13  Prefactor     2.4015        6.9140       -.47889E-07    .25004E-05
  14  Prefactor     34.351        59.915       -.25836E-06    .17030E-04
  15  Prefactor     .10000E-03    44.349       -.22758E-06** at limit **
  16  Prefactor     .10000E-03    33.076       -.84903E-06** at limit **
  17  Normalizat    .67600        .34917        .58452E-06   -.45677E-05
  18  Prefactor     1.1503        .30368        .97747E-06   -.31749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.656436
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0023
  Prefactor  = 107.693
  norm       = 0.0001
  Prefactor  = 12.547
  Prefactor  = 0.000100107
  norm       = 0.0001
  norm       = 52.9049
  norm       = 0.84599
  Prefactor  = 0.0001
  Prefactor  = 2.40151
  Prefactor  = 34.3512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.675996
  Prefactor  = 1.1503
 **********
 **   18 **HESSE 
 **********

 FCN=   1550.854     FROM HESSE     STATUS=OK           248 CALLS     2005 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65644        8222.3        .32520E-02   -1.5546    
   2  norm          .10000E-03    5.9591        .92831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.165        .17689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.002        22.204        .10704E-03   -1.4959    
   5  Prefactor     107.69        138.04        .19371E-03   -1.3629    
   6  norm          .10000E-03    2.7886        .10150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.547        22.850        .11310E-03   -1.4999    
   8  Prefactor     .10011E-03    315.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.651        .13633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          52.905        76.849        .27583E-03   -1.4252    
  11  norm          .84599        4.2695        .15210E-03   -1.5524    
  12  Prefactor     .10000E-03    69.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4015        6.7652        .15898E-03   -1.5398    
  14  Prefactor     34.351        60.115        .68348E-04   -1.4535    
  15  Prefactor     .10000E-03    44.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .67600        .40269        .29603E-03   -1.0485    
  18  Prefactor     1.1503        .35245        .20434E-03   -.87875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55755e-10
Minuit parameter uncertainties:
  1  152.322
  2  8.24717e-05
  3  8.70403e-06
  4  22.2171
  5  138.453
  6  1.3269e-05
  7  22.8655
  8  0.0116639
  9  8.26323e-05
  10  76.9931
  11  3.80122
  12  0.000172276
  13  6.76734
  14  60.2217
  15  0.000143055
  16  0.000153898
  17  0.404466
  18  0.353174
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.255e+01  2.287e+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.150e+00  3.532e-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.760e-01  4.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/946146/likelihoodResults_599616001_599875201_4FGL_J0902.4+2051_daily_bin1390.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) = 1550.62369238
delta logL = 0.230394076503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1550.59154661
delta logL = 0.262539846671

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.880       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4604       1.0000          .0000       10.000    
     3 'Normalizat'    .69190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1380       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=   1550.592     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.890        27.611        .53579E-05   -.24678E-04
   2  Index         1.4600        .80469        .38255E-04    .56973E-07
   3  Normalizat    .69185        .33650       -.61128E-06   -.10197E-03
   4  Prefactor     1.1380        .29789       -.58131E-06   -.12004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8902
  Index      = 1.45996
  Normalizat = 0.691852
  Prefactor  = 1.13797
 **********
 **   18 **HESSE 
 **********

 FCN=   1550.592     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.890        27.437        .92176E-04   -1.4838    
   2  Index         1.4600        .80010        .78881E-02   -.78667    
   3  Normalizat    .69185        .38949        .29280E-03   -1.0422    
   4  Prefactor     1.1380        .34544        .20503E-03   -.88262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16045e-10
Minuit parameter uncertainties:
  1  27.4551
  2  0.807113
  3  0.391059
  4  0.346124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946146': 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) = 1550.59154625
delta logL = 0.262540209636

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.889e+01  2.746e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  1.460e+00  8.071e-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.138e+00  3.461e-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.919e-01  3.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 135.617 20.850
Photon Index (Free Index): 1.46 +/- 0.81
Photon Flux (Free Index): 1.83e-08 +/- 3.08e-08
Energy Flux (Free Index): 6.62e-05 +/- 1.52e-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/946146/cmap_HighResolution_599616001_599875201_4FGL_J0902.4+2051_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-02', comment='SUCCESS', energy_flux2='6.62e-05', dlogl='2.63e-01', photon_flux2='1.83e-08', job_status='DONE', time_completed='2021-08-30 21:34:50.424421', photon_index_error2='0.81', photon_index2='1.46', ts='0.48', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='2.22e-07', energy_flux_error2='1.52e-04', EG='0.68', time_epoch_completed='1630384490.42', return_code='0', job_id='946146', GAL2='1.14', EG2='0.69', return_code2='0', photon_flux_error2='3.08e-08', ts2='1.01', photon_index='2.15' WHERE bin_id='1390' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:34:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 946146: <4FGL_J0902.4+2051_daily_bin1390> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1390 135.617 20.8503 599616001 599875201 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 :                                   404.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            570 sec.

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

