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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1470
RA = 135.617, Dec = 20.8503
tmin = 620352001, tmax = 620611201
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='946260', job_status='RUN', time_executed='2021-08-30 21:26:08.278868', time_epoch_executed='1630383968.28' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946260

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946260/ft1_4FGL_J0902.4+2051_daily_bin1470.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946260/ft2_4FGL_J0902.4+2051_daily_bin1470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946260/ft1_4FGL_J0902.4+2051_daily_bin1470.fits outfile=/scratch/kocevski/946260/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1470.fits ra=135.617 dec=20.8503 rad=12.0 tmin=620352001.0 tmax=620611201.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 5.11
user 4.60
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946260/ft2_4FGL_J0902.4+2051_daily_bin1470.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/946260/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1470.fits evtable="EVENTS" outfile="/scratch/kocevski/946260/ft1_filtered_4FGL_J0902.4+2051_daily_bin1470.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.98
user 0.34
sys 0.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946260/ft1_filtered_4FGL_J0902.4+2051_daily_bin1470.fits" evtable="EVENTS" scfile=/scratch/kocevski/946260/ft2_4FGL_J0902.4+2051_daily_bin1470.fits sctable="SC_DATA" outfile=/scratch/kocevski/946260/ltcube_620352001_620611201_4FGL_J0902.4+2051_daily_bin1470.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/946260/ft2_4FGL_J0902.4+2051_daily_bin1470.fits
.....................!
real 11.91
user 11.20
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946260/ft1_filtered_4FGL_J0902.4+2051_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/946260/ft2_4FGL_J0902.4+2051_daily_bin1470.fits sctable="SC_DATA" expcube=/scratch/kocevski/946260/ltcube_620352001_620611201_4FGL_J0902.4+2051_daily_bin1470.fits outfile=/scratch/kocevski/946260/expmap_620352001_620611201_4FGL_J0902.4+2051_daily_bin1470.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/946260/ltcube_620352001_620611201_4FGL_J0902.4+2051_daily_bin1470.fits
.....................!
real 190.27
user 185.35
sys 4.38

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0902.4+2051 @ 135.617 20.8503

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/946260/ft1_filtered_4FGL_J0902.4+2051_daily_bin1470.fits scfile=/scratch/kocevski/946260/ft2_4FGL_J0902.4+2051_daily_bin1470.fits outfile=/scratch/kocevski/946260/cmap_620352001_620611201_4FGL_J0902.4+2051_daily_bin1470.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.73
user 0.36
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946260/ft1_filtered_4FGL_J0902.4+2051_daily_bin1470.fits scfile=/scratch/kocevski/946260/ft2_4FGL_J0902.4+2051_daily_bin1470.fits outfile=/scratch/kocevski/946260/cmap_HighResolution_620352001_620611201_4FGL_J0902.4+2051_daily_bin1470.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.74
user 0.38
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3101       1.0000         .10000E-03   10000.    
     6 'norm      '    .38142       1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.286       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.141       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .39555       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8983       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.845       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.516       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.099       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2564       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95263       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=   5447.332     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     2036 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.380        .18142E-02** at limit **
   2  norm          .10000E-03    .77145        .10287E-02** at limit **
   3  Prefactor     .10000E-03    8.0079        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.1504        .10560E-02** at limit **
   5  Prefactor     7.3296        86.691        .14835E-03   -.65906E-05
   6  norm          .38145        .46228        .56978E-03   -.27210E-03
   7  Prefactor     35.288        17.836        .67464E-04    .49038E-04
   8  Prefactor     33.142        21.846        .69606E-04    .11106E-04
   9  norm          .10000E-03    4.3146        .14955E-02** at limit **
  10  norm          .32544        38.105        .13141        .96318E-04
  11  norm          1.8983        1.7072        .89260E-04   -.85590E-04
  12  Prefactor     32.858        56.592        .69918E-04    .12683E-04
  13  Prefactor     .10000E-03    2.4443        .11178E-02** at limit **
  14  Prefactor     .10000E-03    24.643        .18142E-02** at limit **
  15  Prefactor     24.546        70.148        .80901E-04   -.85720E-05
  16  Prefactor     36.098        34.048        .66702E-04   -.24543E-05
  17  Normalizat    1.2566        .24043        .25015E-03    .39494E-04
  18  Prefactor     .95246        .20243        .24501E-03    .59162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.3296
  norm       = 0.381446
  Prefactor  = 35.2879
  Prefactor  = 33.1422
  norm       = 0.0001
  norm       = 0.325442
  norm       = 1.89825
  Prefactor  = 32.8576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5456
  Prefactor  = 36.0983
  Normalizat = 1.25658
  Prefactor  = 0.952463
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.332     FROM HESSE     STATUS=OK           238 CALLS     2274 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .77205        .20574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1504        .21120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3296        86.676        .59339E-05   -1.5166    
   6  norm          .38145        .46209        .22791E-04   -1.5584    
   7  Prefactor     35.288        17.831        .26986E-05   -1.4519    
   8  Prefactor     33.142        21.846        .27842E-05   -1.4556    
   9  norm          .10000E-03    4.3149        .29911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .32544        37.077        .13422       -1.5594    
  11  norm          1.8983        1.7071        .35704E-05   -1.5432    
  12  Prefactor     32.858        56.613        .27967E-05   -1.4561    
  13  Prefactor     .10000E-03    2.4449        .22357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.546        70.200        .32361E-05   -1.4717    
  16  Prefactor     36.098        34.049        .13340E-04   -1.4506    
  17  Normalizat    1.2566        .24066        .10006E-04   -.84872    
  18  Prefactor     .95246        .20263        .98003E-05   -.94331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78264e-10
Minuit parameter uncertainties:
  1  1.08071e-05
  2  8.74614e-06
  3  1.94948e-05
  4  8.16806e-06
  5  50.5017
  6  0.46209
  7  17.834
  8  21.8516
  9  8.06547e-07
  10  6.95071
  11  1.70719
  12  56.7057
  13  8.88077e-06
  14  7.49019e-05
  15  70.4378
  16  34.0669
  17  0.240875
  18  0.202789
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  3.529e+01  1.783e+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.525e-01  2.028e-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.257e+00  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.03
Ra Dec: 135.617 20.850
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.68e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 4.34e-05 +/- 2.19e-05

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) = 5447.25408867
delta logL = 0.0777233609815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5447.24196596
delta logL = 0.0898460716062

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.114       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9698       1.0000          .0000       10.000    
     3 'Normalizat'    1.2729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94463       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=   5447.242     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      269 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.114        21.179        .64089E-04   -.20315E-03
   2  Index         1.9697        .40917        .56627E-02   -.10883E-03
   3  Normalizat    1.2729        .23382        .24884E-03    .52357E-04
   4  Prefactor     .94465        .20150        .24593E-03    .69756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.1144
  Index      = 1.96967
  Normalizat = 1.27291
  Prefactor  = 0.944646
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.242     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.114        20.982        .12818E-04   -1.4456    
   2  Index         1.9697        .40506        .22651E-03   -.65110    
   3  Normalizat    1.2729        .23393        .99537E-05   -.84379    
   4  Prefactor     .94465        .20166        .98374E-05   -.94598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53386e-10
Minuit parameter uncertainties:
  1  20.986
  2  0.405759
  3  0.23412
  4  0.201822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946260': 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) = 5447.24196589
delta logL = 0.0898461439483

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  3.911e+01  2.099e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  1.970e+00  4.058e-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:  9.446e-01  2.018e-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.273e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.23
Ra Dec: 135.617 20.850
Photon Index (Free Index): 1.97 +/- 0.41
Photon Flux (Free Index): 7.16e-08 +/- 5.08e-08
Energy Flux (Free Index): 5.34e-05 +/- 3.99e-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/946260/cmap_HighResolution_620352001_620611201_4FGL_J0902.4+2051_daily_bin1470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.68e-08', energy_flux2='5.34e-05', photon_flux_error='4.39e-08', dlogl='8.98e-02', energy_flux='4.34e-05', photon_flux2='7.16e-08', job_status='DONE', time_completed='2021-08-30 21:35:00.807095', photon_index_error2='0.41', photon_index2='1.97', ts='11.03', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.99e-05', EG='1.26', time_epoch_completed='1630384500.81', return_code='0', job_id='946260', GAL2='0.94', EG2='1.27', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='5.08e-08', ts2='11.23', photon_index='2.15' WHERE bin_id='1470' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:35:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 946260: <4FGL_J0902.4+2051_daily_bin1470> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1470> 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) <bullet0074>, 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:35:01 2021
Results reported at Mon Aug 30 21:35:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1470 135.617 20.8503 620352001 620611201 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 :                                   512.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            571 sec.

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

