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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1034
RA = 135.617, Dec = 20.8503
tmin = 507340801, tmax = 507600001
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='943218', job_status='RUN', time_executed='2021-08-30 21:16:12.453341', time_epoch_executed='1630383372.45' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1034'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943218

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943218/ft1_4FGL_J0902.4+2051_daily_bin1034.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943218/ft2_4FGL_J0902.4+2051_daily_bin1034.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943218/ft1_4FGL_J0902.4+2051_daily_bin1034.fits outfile=/scratch/kocevski/943218/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1034.fits ra=135.617 dec=20.8503 rad=12.0 tmin=507340801.0 tmax=507600001.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.76
user 3.31
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/943218/ft1_filtered_4FGL_J0902.4+2051_daily_bin1034.fits" evtable="EVENTS" scfile=/scratch/kocevski/943218/ft2_4FGL_J0902.4+2051_daily_bin1034.fits sctable="SC_DATA" outfile=/scratch/kocevski/943218/ltcube_507340801_507600001_4FGL_J0902.4+2051_daily_bin1034.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/943218/ft2_4FGL_J0902.4+2051_daily_bin1034.fits
.....................!
real 12.26
user 11.63
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943218/ft1_filtered_4FGL_J0902.4+2051_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/943218/ft2_4FGL_J0902.4+2051_daily_bin1034.fits sctable="SC_DATA" expcube=/scratch/kocevski/943218/ltcube_507340801_507600001_4FGL_J0902.4+2051_daily_bin1034.fits outfile=/scratch/kocevski/943218/expmap_507340801_507600001_4FGL_J0902.4+2051_daily_bin1034.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/943218/ltcube_507340801_507600001_4FGL_J0902.4+2051_daily_bin1034.fits
.....................!
real 190.79
user 185.64
sys 4.63

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/943218/ft1_filtered_4FGL_J0902.4+2051_daily_bin1034.fits scfile=/scratch/kocevski/943218/ft2_4FGL_J0902.4+2051_daily_bin1034.fits outfile=/scratch/kocevski/943218/cmap_507340801_507600001_4FGL_J0902.4+2051_daily_bin1034.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.75
user 0.36
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/943218/ft1_filtered_4FGL_J0902.4+2051_daily_bin1034.fits scfile=/scratch/kocevski/943218/ft2_4FGL_J0902.4+2051_daily_bin1034.fits outfile=/scratch/kocevski/943218/cmap_HighResolution_507340801_507600001_4FGL_J0902.4+2051_daily_bin1034.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=135.617 yref=20.8503 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.75
user 0.37
sys 0.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .61488       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.781       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5506       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0352       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.497       1.0000         .10000E-03   10000.    
     9 'norm      '    6.8163       1.0000         .10000E-03   10000.    
    10 'norm      '    .14777E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.728       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4788       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1870       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92197       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=   5662.943     FROM MIGRAD    STATUS=CONVERGED    350 CALLS     1699 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.380       -.13969E-06** at limit **
   2  norm          .61508        .93322        .93897E-06   -.68808E-04
   3  Prefactor     .10000E-03    3.9750       -.70889E-08** at limit **
   4  Prefactor     .10000E-03    1.5847       -.33190E-08** at limit **
   5  Prefactor     21.767        38.552       -.35406E-06   -.78761E-04
   6  norm          1.5505        .84348       -.16151E-07   -.61186E-04
   7  Prefactor     4.0277        16.545        .69468E-06    .67685E-05
   8  Prefactor     14.493        17.093       -.44476E-07   -.16461E-04
   9  norm          6.8163        7.0518        .94704E-07    .38314E-05
  10  norm          .10000E-03    80.356       -.29704E-06** at limit **
  11  norm          .10000E-03    .40388        .81043E-08** at limit **
  12  Prefactor     42.701        45.053       -.66397E-06   -.14859E-03
  13  Prefactor     4.4942        3.6691        .33817E-07   -.10604E-04
  14  Prefactor     1.3988        78.830        .25028E-05   -.65789E-05
  15  Prefactor     .10000E-03    29.379        .58351E-07** at limit **
  16  Prefactor     .10000E-03    16.352        .81781E-07** at limit **
  17  Normalizat    1.1871        .18990        .52390E-06   -.59385E-04
  18  Prefactor     .92187        .16486       -.11210E-05    .22282E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.615077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7666
  norm       = 1.55054
  Prefactor  = 4.02774
  Prefactor  = 14.4932
  norm       = 6.81634
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 42.7008
  Prefactor  = 4.49422
  Prefactor  = 1.39876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18713
  Prefactor  = 0.921872
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.943     FROM HESSE     STATUS=OK           246 CALLS     1945 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .61508        .93821        .23462E-03   -1.5551    
   3  Prefactor     .10000E-03    4.0240        .14648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5880        .92511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.767        38.599        .85823E-04   -1.4775    
   6  norm          1.5505        .83570        .46285E-04   -1.5459    
   7  Prefactor     4.0277        16.365        .20074E-03   -1.5307    
   8  Prefactor     14.493        17.185        .10519E-03   -1.4946    
   9  norm          6.8163        7.0522        .15368E-03   -1.5186    
  10  norm          .10000E-03    81.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .40428        .46698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.701        44.969        .61329E-04   -1.4400    
  13  Prefactor     4.4942        3.6760        .12381E-03   -1.5284    
  14  Prefactor     1.3988        80.424        .35302E-03   -1.5471    
  15  Prefactor     .10000E-03    29.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1871        .22595        .23306E-03   -.87001    
  18  Prefactor     .92187        .19375        .23614E-03   -.95381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75437e-10
Minuit parameter uncertainties:
  1  3.67916e-05
  2  0.938231
  3  8.81492e-06
  4  3.59897e-07
  5  38.6433
  6  0.835707
  7  16.245
  8  17.1911
  9  7.0531
  10  0.000135683
  11  8.16512e-08
  12  45.005
  13  3.67616
  14  21.2418
  15  2.75033e-06
  16  3.25256e-06
  17  0.226139
  18  0.193898
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  4.028e+00  1.625e+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:  9.219e-01  1.939e-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.187e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/943218/likelihoodResults_507340801_507600001_4FGL_J0902.4+2051_daily_bin1034.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) = 5661.87904315
delta logL = 1.06425279594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5661.8491865
delta logL = 1.09410944644

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0299       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7767       1.0000          .0000       10.000    
     3 'Normalizat'    1.1070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96328       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=   5661.849     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      309 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0288        10.829        .12172E-01    .78323E-03
   2  Index         3.7771        2.1517        .10682        .15730E-03
   3  Normalizat    1.1069        .44274E-01    .54207E-01    .79723E-05
   4  Prefactor     .96336        .40241E-01    .45807E-01    .79907E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0288
  Index      = 3.77712
  Normalizat = 1.10695
  Prefactor  = 0.96336
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.849     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      344 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0288        27.416        .55184E-03   -1.5505    
   2  Index         3.7771        3.8790        .38542E-02   -.24708    
   3  Normalizat    1.1069        .17368        .23968E-03   -.89529    
   4  Prefactor     .96336        .15798        .23134E-03   -.93961    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.58279e-08
Minuit parameter uncertainties:
  1  10.6266
  2  4.49648
  3  0.17377
  4  0.158051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943218': 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) = 5661.84918634
delta logL = 1.09410960175

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.029e+00  1.063e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  3.777e+00  4.496e+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.634e-01  1.581e-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.107e+00  1.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 135.617 20.850
Photon Index (Free Index): 3.78 +/- 4.50
Photon Flux (Free Index): 7.65e-08 +/- 5.56e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.48e-05

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/943218/cmap_HighResolution_507340801_507600001_4FGL_J0902.4+2051_daily_bin1034.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='1.09e+00', photon_flux2='7.65e-08', job_status='DONE', time_completed='2021-08-30 21:25:21.835893', photon_index_error2='4.50', photon_index2='3.78', ts='0.07', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.70e-08', energy_flux_error2='1.48e-05', EG='1.19', time_epoch_completed='1630383921.84', return_code='0', job_id='943218', GAL2='0.96', EG2='1.11', return_code2='102', photon_flux_error2='5.56e-08', ts2='2.37', photon_index='2.15' WHERE bin_id='1034' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:25:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 943218: <4FGL_J0902.4+2051_daily_bin1034> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1034 135.617 20.8503 507340801 507600001 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 :                                   545.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            571 sec.

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

