/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 3 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_bin55
RA = 135.617, Dec = 20.8503
tmin = 253584001, tmax = 253843201
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='936536', job_status='RUN', time_executed='2021-08-30 20:57:12.816436', time_epoch_executed='1630382232.82' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936536/ft1_4FGL_J0902.4+2051_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936536/ft2_4FGL_J0902.4+2051_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936536/ft1_4FGL_J0902.4+2051_daily_bin55.fits outfile=/scratch/kocevski/936536/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin55.fits ra=135.617 dec=20.8503 rad=12.0 tmin=253584001.0 tmax=253843201.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.46
user 1.25
sys 4.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936536/ft1_filtered_4FGL_J0902.4+2051_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/936536/ft2_4FGL_J0902.4+2051_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/936536/ltcube_253584001_253843201_4FGL_J0902.4+2051_daily_bin55.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/936536/ft2_4FGL_J0902.4+2051_daily_bin55.fits
.....................!
real 16.85
user 11.96
sys 4.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936536/ft1_filtered_4FGL_J0902.4+2051_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/936536/ft2_4FGL_J0902.4+2051_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/936536/ltcube_253584001_253843201_4FGL_J0902.4+2051_daily_bin55.fits outfile=/scratch/kocevski/936536/expmap_253584001_253843201_4FGL_J0902.4+2051_daily_bin55.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/936536/ltcube_253584001_253843201_4FGL_J0902.4+2051_daily_bin55.fits
.....................!
real 194.34
user 185.10
sys 8.73

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/936536/ft1_filtered_4FGL_J0902.4+2051_daily_bin55.fits scfile=/scratch/kocevski/936536/ft2_4FGL_J0902.4+2051_daily_bin55.fits outfile=/scratch/kocevski/936536/cmap_253584001_253843201_4FGL_J0902.4+2051_daily_bin55.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 4.46
user 0.35
sys 4.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936536/ft1_filtered_4FGL_J0902.4+2051_daily_bin55.fits scfile=/scratch/kocevski/936536/ft2_4FGL_J0902.4+2051_daily_bin55.fits outfile=/scratch/kocevski/936536/cmap_HighResolution_253584001_253843201_4FGL_J0902.4+2051_daily_bin55.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 4.07
user 0.36
sys 3.69

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.682       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2336       1.0000         .10000E-03   10000.    
     9 'norm      '    .10532E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.1438       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2873       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.177       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.987       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9000       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4115       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2251       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94497       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=   7007.352     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1526 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.181       -.51281E-06** at limit **
   2  norm          .10000E-03    .26895        .19643E-07** at limit **
   3  Prefactor     .10000E-03    3.2283        .44930E-07** at limit **
   4  Prefactor     .10000E-03    4.8207        .93681E-07** at limit **
   5  Prefactor     .10000E-03    10.852        .21684E-06** at limit **
   6  norm          .10000E-03    .17859        .18976E-07** at limit **
   7  Prefactor     14.682        11.371        .28191E-07   -.23752E-04
   8  Prefactor     6.2338        11.626        .32647E-05   -.17706E-03
   9  norm          .10001E-03    4.3157        .81086E-06** at limit **
  10  norm          9.1414        31.598       -.62329E-06   -.29617E-04
  11  norm          1.2873        1.3072       -.27666E-07   -.45696E-04
  12  Prefactor     26.178        33.372        .58549E-07    .30495E-05
  13  Prefactor     10.988        4.4227        .68305E-07    .23803E-03
  14  Prefactor     2.8836        35.220       -.49717E-05   -.13996E-03
  15  Prefactor     .10000E-03    27.254        .94303E-07** at limit **
  16  Prefactor     5.4113        67.157        .64980E-05   -.28265E-04
  17  Normalizat    1.2250        .16877       -.29747E-06   -.49192E-04
  18  Prefactor     .94508        .14705       -.25858E-06   -.82502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.6819
  Prefactor  = 6.23382
  norm       = 0.000100006
  norm       = 9.14139
  norm       = 1.28729
  Prefactor  = 26.1778
  Prefactor  = 10.9876
  Prefactor  = 2.88356
  Prefactor  = 0.0001
  Prefactor  = 5.41128
  Normalizat = 1.22502
  Prefactor  = 0.945084
 **********
 **   18 **HESSE 
 **********

 FCN=   7007.352     FROM HESSE     STATUS=OK           250 CALLS     1776 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .27334        .42367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2577        .14686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9533        .35885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .28994        .68454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.682        11.304        .10453E-03   -1.4941    
   8  Prefactor     6.2338        11.848        .80392E-03   -1.5209    
   9  norm          .10001E-03    13.049        .33113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.1414        31.649        .13254E-03   -1.5103    
  11  norm          1.2873        1.3074        .93584E-04   -1.5481    
  12  Prefactor     26.178        33.371        .78297E-04   -1.4684    
  13  Prefactor     10.988        4.4501        .10683E-03   -1.5045    
  14  Prefactor     2.8836        40.264        .23862E-03   -1.5368    
  15  Prefactor     .10000E-03    27.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.4113        68.257        .86372E-03   -1.5243    
  17  Normalizat    1.2250        .20163        .23821E-03   -.85833    
  18  Prefactor     .94508        .17480        .23693E-03   -.94583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22417e-10
Minuit parameter uncertainties:
  1  7.26586e-05
  2  1.58916e-07
  3  8.16488e-07
  4  3.27878e-06
  5  2.36961e-05
  6  1.8364e-07
  7  11.3059
  8  11.8523
  9  0.000569984
  10  31.7076
  11  1.30746
  12  33.3949
  13  4.45023
  14  21.5674
  15  2.39605e-05
  16  38.4912
  17  0.201753
  18  0.1749
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.468e+01  1.131e+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.451e-01  1.749e-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.225e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 135.617 20.850
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/936536/likelihoodResults_253584001_253843201_4FGL_J0902.4+2051_daily_bin55.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) = 7007.24261246
delta logL = 0.109820098135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7007.24245011
delta logL = 0.109982457404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.314       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8961       1.0000          .0000       10.000    
     3 'Normalizat'    1.2327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94059       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=   7007.242     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      296 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.328        15.106        .93590E-04   -.14091E-04
   2  Index         1.8959        .51588        .82509E-02    .24719E-03
   3  Normalizat    1.2327        .19440        .23758E-03   -.18184E-05
   4  Prefactor     .94058        .17297        .23740E-03    .37544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3279
  Index      = 1.8959
  Normalizat = 1.23267
  Prefactor  = 0.940576
 **********
 **   18 **HESSE 
 **********

 FCN=   7007.242     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.328        14.890        .37436E-05   -1.4851    
   2  Index         1.8959        .50855        .16502E-02   -.66979    
   3  Normalizat    1.2327        .19455        .95032E-05   -.85599    
   4  Prefactor     .94058        .17312        .94961E-05   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70634e-12
Minuit parameter uncertainties:
  1  14.8926
  2  0.509992
  3  0.194665
  4  0.173225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936536': 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) = 7007.24244966
delta logL = 0.109982906334

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.833e+01  1.489e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  1.896e+00  5.100e-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.406e-01  1.732e-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.233e+00  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 135.617 20.850
Photon Index (Free Index): 1.90 +/- 0.51
Photon Flux (Free Index): 2.99e-08 +/- 2.72e-08
Energy Flux (Free Index): 2.71e-05 +/- 3.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/936536/cmap_HighResolution_253584001_253843201_4FGL_J0902.4+2051_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='2.71e-05', photon_flux_error='2.78e-08', dlogl='1.10e-01', energy_flux='1.80e-05', photon_flux2='2.99e-08', job_status='DONE', time_completed='2021-08-30 21:07:33.823310', photon_index_error2='0.51', photon_index2='1.90', ts='2.77', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.78e-08', energy_flux_error2='3.22e-05', EG='1.23', time_epoch_completed='1630382853.82', return_code='0', job_id='936536', GAL2='0.94', EG2='1.23', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='2.72e-08', ts2='2.99', photon_index='2.15' WHERE bin_id='55' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:07:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 936536: <4FGL_J0902.4+2051_daily_bin55> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin55> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 30 20:55:44 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:55:45 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:45 2021
Terminated at Mon Aug 30 21:07:35 2021
Results reported at Mon Aug 30 21:07:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin55 135.617 20.8503 253584001 253843201 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 :                                   678.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            711 sec.

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

