/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 148 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0902.4+2051_daily_bin99
RA = 135.617, Dec = 20.8503
tmin = 264988801, tmax = 265248001
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='936600', job_status='RUN', time_executed='2021-08-30 20:58:33.479075', time_epoch_executed='1630382313.48' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='99'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936600/ft1_4FGL_J0902.4+2051_daily_bin99.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936600/ft2_4FGL_J0902.4+2051_daily_bin99.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936600/ft1_4FGL_J0902.4+2051_daily_bin99.fits outfile=/scratch/kocevski/936600/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin99.fits ra=135.617 dec=20.8503 rad=12.0 tmin=264988801.0 tmax=265248001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.78
user 1.29
sys 0.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936600/ft1_filtered_4FGL_J0902.4+2051_daily_bin99.fits" evtable="EVENTS" scfile=/scratch/kocevski/936600/ft2_4FGL_J0902.4+2051_daily_bin99.fits sctable="SC_DATA" outfile=/scratch/kocevski/936600/ltcube_264988801_265248001_4FGL_J0902.4+2051_daily_bin99.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/936600/ft2_4FGL_J0902.4+2051_daily_bin99.fits
.....................!
real 12.87
user 12.15
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936600/ft1_filtered_4FGL_J0902.4+2051_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/936600/ft2_4FGL_J0902.4+2051_daily_bin99.fits sctable="SC_DATA" expcube=/scratch/kocevski/936600/ltcube_264988801_265248001_4FGL_J0902.4+2051_daily_bin99.fits outfile=/scratch/kocevski/936600/expmap_264988801_265248001_4FGL_J0902.4+2051_daily_bin99.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/936600/ltcube_264988801_265248001_4FGL_J0902.4+2051_daily_bin99.fits
.....................!
real 190.52
user 185.57
sys 4.57

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/936600/ft1_filtered_4FGL_J0902.4+2051_daily_bin99.fits scfile=/scratch/kocevski/936600/ft2_4FGL_J0902.4+2051_daily_bin99.fits outfile=/scratch/kocevski/936600/cmap_264988801_265248001_4FGL_J0902.4+2051_daily_bin99.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.84
user 0.37
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936600/ft1_filtered_4FGL_J0902.4+2051_daily_bin99.fits scfile=/scratch/kocevski/936600/ft2_4FGL_J0902.4+2051_daily_bin99.fits outfile=/scratch/kocevski/936600/cmap_HighResolution_264988801_265248001_4FGL_J0902.4+2051_daily_bin99.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.85
user 0.36
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.740       1.0000         .10000E-03   10000.    
     2 'norm      '    4.8693       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5071       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2476       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.071       1.0000         .10000E-03   10000.    
     6 'norm      '    .20509       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6744       1.0000         .10000E-03   10000.    
    10 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7087       1.0000         .10000E-03   10000.    
    12 'Prefactor '    81.989       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.976       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2433       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93215       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=   8675.871     FROM MIGRAD    STATUS=CONVERGED    342 CALLS     1786 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.731        20.047       -.87754E-05   -.55085E-04
   2  norm          4.8709        1.4945        .37481E-06   -.15666E-03
   3  Prefactor     1.4987        3.1750        .11104E-05   -.14917E-02
   4  Prefactor     7.2503        6.0179       -.10386E-05   -.25895E-04
   5  Prefactor     29.070        29.725       -.19973E-05   -.82810E-06
   6  norm          .20567        .46792       -.50510E-07   -.20359E-04
   7  Prefactor     .10000E-03    3.1510        .12711E-07** at limit **
   8  Prefactor     .10000E-03    10.247       -.29549E-06** at limit **
   9  norm          3.6743        3.4700       -.10923E-05   -.73707E-05
  10  norm          .10000E-03    9.4012        .17027E-06** at limit **
  11  norm          1.7087        1.3739       -.23138E-07    .20312E-04
  12  Prefactor     81.977        45.640       -.99249E-05   -.51904E-04
  13  Prefactor     .10000E-03    2.1599        .41614E-07** at limit **
  14  Prefactor     .10000E-03    28.027       -.90932E-05** at limit **
  15  Prefactor     .10000E-03    27.350        .91409E-05** at limit **
  16  Prefactor     59.982        36.958        .49372E-05    .38575E-04
  17  Normalizat    1.2430        .15508        .62418E-06    .59552E-04
  18  Prefactor     .93245        .13385        .70554E-06    .65816E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.7309
  norm       = 4.87087
  Prefactor  = 1.49867
  Prefactor  = 7.25026
  Prefactor  = 29.0699
  norm       = 0.205671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.67432
  norm       = 0.0001
  norm       = 1.70871
  Prefactor  = 81.9774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.9818
  Normalizat = 1.24298
  Prefactor  = 0.932446
 **********
 **   18 **HESSE 
 **********

 FCN=   8675.871     FROM HESSE     STATUS=OK           250 CALLS     2036 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.731        20.078        .90148E-04   -1.4819    
   2  norm          4.8709        1.5557        .56720E-04   -1.5267    
   3  Prefactor     1.4987        17.553        .17427E-02   -1.5463    
   4  Prefactor     7.2503        6.0365        .14899E-03   -1.5169    
   5  Prefactor     29.070        29.802        .74306E-04   -1.4629    
   6  norm          .20567        .57376        .89547E-03   -1.5617    
   7  Prefactor     .10000E-03    3.1562        .16142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6743        3.4755        .16458E-03   -1.5325    
  10  norm          .10000E-03    9.4085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7087        1.3801        .95034E-04   -1.5447    
  12  Prefactor     81.977        45.731        .22179E-03   -1.3895    
  13  Prefactor     .10000E-03    2.2306        .26701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     59.982        37.038        .51807E-04   -1.4157    
  17  Normalizat    1.2430        .18227        .24600E-03   -.85285    
  18  Prefactor     .93245        .15546        .24770E-03   -.95016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1913e-08
Minuit parameter uncertainties:
  1  20.0851
  2  1.55573
  3  10.2613
  4  6.03704
  5  29.817
  6  0.573774
  7  1.01348e-06
  8  4.36042e-07
  9  3.47567
  10  1.43968e-05
  11  1.38009
  12  45.7505
  13  1.84006e-06
  14  4.31973e-05
  15  5.09517e-05
  16  37.0525
  17  0.182362
  18  0.155533
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.013e-06  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.324e-01  1.555e-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.243e+00  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/936600/likelihoodResults_264988801_265248001_4FGL_J0902.4+2051_daily_bin99.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): 102
logL (Free Index) = 8675.8723565
delta logL = -0.00150430035683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8675.8708521
delta logL = 9.97297320282e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1321       1.0000          .0000       10.000    
     3 'Normalizat'    1.2430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93245       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=   8675.871     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    48.161        .16250E-02** at limit **
   2  Index         2.0778        5.6142        .50000        .26820E-04
   3  Normalizat    1.2430        .15499E-01    .24600E-03   -.15713E-04
   4  Prefactor     .93245        .13812E-01    .24770E-03   -.63338E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100894
  Index      = 2.07775
  Normalizat = 1.24298
  Prefactor  = 0.932446
 **********
 **   18 **HESSE 
 **********

 FCN=   8675.871     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10089E-03    201.40        .32499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0778        5.9308        .50000       -.62420    
   3  Normalizat    1.2430        .33693E-01    .98401E-05   -.85285    
   4  Prefactor     .93245        .30021E-01    .99081E-05   -.95016    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.98464e-08
Minuit parameter uncertainties:
  1  0.0269306
  2  639.939
  3  0.0336935
  4  0.0300213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936600': 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) = 8675.87085183
delta logL = 3.64592779079e-07

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.009e-04  2.693e-02  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.078e+00  6.399e+02  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.324e-01  3.002e-02  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.243e+00  3.369e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 135.617 20.850

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/936600/cmap_HighResolution_264988801_265248001_4FGL_J0902.4+2051_daily_bin99.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-03', job_status='DONE', photon_flux_upper_limit='3.79e-08', time_completed='2021-08-30 21:09:20.615883', job_id='936600', GAL2='0.93', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630382960.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='99' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:09:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 936600: <4FGL_J0902.4+2051_daily_bin99> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin99 135.617 20.8503 264988801 265248001 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 :                                   648.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

