/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 195 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 = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0902.4+2051_daily_bin24
RA = 135.617, Dec = 20.8503
tmin = 245548801, tmax = 245808001
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='936492', job_status='RUN', time_executed='2021-08-30 21:00:18.974071', time_epoch_executed='1630382418.97' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936492/ft1_4FGL_J0902.4+2051_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936492/ft2_4FGL_J0902.4+2051_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936492/ft1_4FGL_J0902.4+2051_daily_bin24.fits outfile=/scratch/kocevski/936492/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin24.fits ra=135.617 dec=20.8503 rad=12.0 tmin=245548801.0 tmax=245808001.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.67
user 1.23
sys 3.93

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936492/ft1_filtered_4FGL_J0902.4+2051_daily_bin24.fits" evtable="EVENTS" scfile=/scratch/kocevski/936492/ft2_4FGL_J0902.4+2051_daily_bin24.fits sctable="SC_DATA" outfile=/scratch/kocevski/936492/ltcube_245548801_245808001_4FGL_J0902.4+2051_daily_bin24.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/936492/ft2_4FGL_J0902.4+2051_daily_bin24.fits
.....................!
real 17.93
user 12.34
sys 5.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936492/ft1_filtered_4FGL_J0902.4+2051_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/936492/ft2_4FGL_J0902.4+2051_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/936492/ltcube_245548801_245808001_4FGL_J0902.4+2051_daily_bin24.fits outfile=/scratch/kocevski/936492/expmap_245548801_245808001_4FGL_J0902.4+2051_daily_bin24.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/936492/ltcube_245548801_245808001_4FGL_J0902.4+2051_daily_bin24.fits
.....................!
real 196.71
user 185.34
sys 10.62

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/936492/ft1_filtered_4FGL_J0902.4+2051_daily_bin24.fits scfile=/scratch/kocevski/936492/ft2_4FGL_J0902.4+2051_daily_bin24.fits outfile=/scratch/kocevski/936492/cmap_245548801_245808001_4FGL_J0902.4+2051_daily_bin24.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.76
user 0.38
sys 4.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936492/ft1_filtered_4FGL_J0902.4+2051_daily_bin24.fits scfile=/scratch/kocevski/936492/ft2_4FGL_J0902.4+2051_daily_bin24.fits outfile=/scratch/kocevski/936492/cmap_HighResolution_245548801_245808001_4FGL_J0902.4+2051_daily_bin24.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.80
user 0.38
sys 4.32

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.4485       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5896       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.381       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4206       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    218.22       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.635       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6198       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3420       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90345       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=   6030.124     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1483 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3063        .25056E-06** at limit **
   2  norm          2.4487        1.2668       -.11126E-06   -.11120E-03
   3  Prefactor     13.172        9.9772        .79064E-06   -.30044E-04
   4  Prefactor     .10000E-03    2.7743        .12860E-06** at limit **
   5  Prefactor     .10000E-03    14.963        .44053E-06** at limit **
   6  norm          1.5895        .82781       -.57778E-07   -.13322E-03
   7  Prefactor     20.382        15.540       -.93441E-06    .35498E-05
   8  Prefactor     5.4225        12.879       -.94791E-06   -.66730E-04
   9  norm          .10000E-03    4.1327        .18185E-06** at limit **
  10  norm          218.22        66.473        .55323E-06    .14623E-04
  11  norm          .10000E-03    .61721       -.43023E-07** at limit **
  12  Prefactor     .10000E-03    34.509       -.35973E-06** at limit **
  13  Prefactor     .10000E-03    1.1940        .16179E-06** at limit **
  14  Prefactor     19.589        27.652       -.32892E-04   -.20624E-06
  15  Prefactor     .10000E-03    76.285        .12328E-04** at limit **
  16  Prefactor     4.6161        25.895       -.30141E-05   -.29942E-04
  17  Normalizat    1.3418        .19927        .28426E-05   -.12739E-03
  18  Prefactor     .90368        .17298       -.17803E-06    .92800E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.44871
  Prefactor  = 13.1723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58949
  Prefactor  = 20.3825
  Prefactor  = 5.42248
  norm       = 0.0001
  norm       = 218.219
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5889
  Prefactor  = 0.0001
  Prefactor  = 4.6161
  Normalizat = 1.34176
  Prefactor  = 0.90368
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.124     FROM HESSE     STATUS=OK           242 CALLS     1725 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4487        1.2646        .60113E-04   -1.5395    
   3  Prefactor     13.172        9.9812        .11037E-03   -1.4982    
   4  Prefactor     .10000E-03    2.7827        .12630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5895        .82645        .48040E-04   -1.5456    
   7  Prefactor     20.382        15.525        .88720E-04   -1.4805    
   8  Prefactor     5.4225        12.914        .17259E-03   -1.5242    
   9  norm          .10000E-03    4.1451        .15417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          218.22        66.489        .27378E-04   -1.2743    
  11  norm          .10000E-03    .62261        .59569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2008        .82853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.589        27.676        .90388E-04   -1.4822    
  15  Prefactor     .10000E-03    76.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6161        25.901        .18726E-03   -1.5278    
  17  Normalizat    1.3418        .23687        .24561E-03   -.82328    
  18  Prefactor     .90368        .20508        .26011E-03   -.96013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48488e-10
Minuit parameter uncertainties:
  1  1.14361e-05
  2  1.26465
  3  9.98244
  4  8.03189e-06
  5  2.39386e-05
  6  0.826453
  7  15.5277
  8  12.9202
  9  5.40379e-06
  10  66.5122
  11  3.3102e-08
  12  4.90064e-06
  13  8.20304e-06
  14  27.6943
  15  3.34714e-05
  16  21.8829
  17  0.237066
  18  0.205252
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  2.038e+01  1.553e+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.037e-01  2.053e-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.342e+00  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 135.617 20.850
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.02e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 1.91e-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) = 6030.07650891
delta logL = 0.0475039198291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6030.07344878
delta logL = 0.0505640439433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.295       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3213       1.0000          .0000       10.000    
     3 'Normalizat'    1.3307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90865       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=   6030.073     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      299 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.286        15.928        .93639E-04    .17240E-03
   2  Index         2.3206        .57012        .65164E-02    .46776E-03
   3  Normalizat    1.3309        .23245        .24634E-03    .73842E-04
   4  Prefactor     .90855        .20509        .25940E-03    .12464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2859
  Index      = 2.32061
  Normalizat = 1.33086
  Prefactor  = 0.908547
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.073     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.286        15.365        .37456E-05   -1.4852    
   2  Index         2.3206        .54968        .13033E-02   -.56555    
   3  Normalizat    1.3309        .23249        .98534E-05   -.82650    
   4  Prefactor     .90855        .20522        .10376E-04   -.95843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40945e-11
Minuit parameter uncertainties:
  1  15.3683
  2  0.551249
  3  0.232671
  4  0.205391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936492': 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) = 6030.07344658
delta logL = 0.0505662472297

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.829e+01  1.537e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.321e+00  5.512e-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.085e-01  2.054e-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.331e+00  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 135.617 20.850
Photon Index (Free Index): 2.32 +/- 0.55
Photon Flux (Free Index): 6.19e-08 +/- 5.52e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.70e-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/936492/cmap_HighResolution_245548801_245808001_4FGL_J0902.4+2051_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.02e-08', energy_flux2='2.27e-05', photon_flux_error='3.82e-08', dlogl='5.06e-02', energy_flux='2.51e-05', photon_flux2='6.19e-08', job_status='DONE', time_completed='2021-08-30 21:09:32.092664', photon_index_error2='0.55', photon_index2='2.32', ts='4.35', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='1.34', time_epoch_completed='1630382972.09', return_code='0', job_id='936492', GAL2='0.91', EG2='1.33', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='5.52e-08', ts2='4.48', photon_index='2.15' WHERE bin_id='24' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:09:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 936492: <4FGL_J0902.4+2051_daily_bin24> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin24 135.617 20.8503 245548801 245808001 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 :                                   618.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             197.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            835 sec.

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

