/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 129 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_bin1479
RA = 135.617, Dec = 20.8503
tmin = 622684801, tmax = 622944001
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='946273', job_status='RUN', time_executed='2021-08-30 21:27:56.827723', time_epoch_executed='1630384076.83' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946273

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946273/ft1_4FGL_J0902.4+2051_daily_bin1479.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946273/ft2_4FGL_J0902.4+2051_daily_bin1479.fits


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

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

Done.
real 3.88
user 3.62
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946273/ft2_4FGL_J0902.4+2051_daily_bin1479.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/946273/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1479.fits evtable="EVENTS" outfile="/scratch/kocevski/946273/ft1_filtered_4FGL_J0902.4+2051_daily_bin1479.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.40
user 0.26
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946273/ft1_filtered_4FGL_J0902.4+2051_daily_bin1479.fits" evtable="EVENTS" scfile=/scratch/kocevski/946273/ft2_4FGL_J0902.4+2051_daily_bin1479.fits sctable="SC_DATA" outfile=/scratch/kocevski/946273/ltcube_622684801_622944001_4FGL_J0902.4+2051_daily_bin1479.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/946273/ft2_4FGL_J0902.4+2051_daily_bin1479.fits
.....................!
real 8.61
user 8.34
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946273/ft1_filtered_4FGL_J0902.4+2051_daily_bin1479.fits evtable="EVENTS" scfile=/scratch/kocevski/946273/ft2_4FGL_J0902.4+2051_daily_bin1479.fits sctable="SC_DATA" expcube=/scratch/kocevski/946273/ltcube_622684801_622944001_4FGL_J0902.4+2051_daily_bin1479.fits outfile=/scratch/kocevski/946273/expmap_622684801_622944001_4FGL_J0902.4+2051_daily_bin1479.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/946273/ltcube_622684801_622944001_4FGL_J0902.4+2051_daily_bin1479.fits
.....................!
real 140.35
user 136.52
sys 3.02

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/946273/ft1_filtered_4FGL_J0902.4+2051_daily_bin1479.fits scfile=/scratch/kocevski/946273/ft2_4FGL_J0902.4+2051_daily_bin1479.fits outfile=/scratch/kocevski/946273/cmap_622684801_622944001_4FGL_J0902.4+2051_daily_bin1479.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.51
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946273/ft1_filtered_4FGL_J0902.4+2051_daily_bin1479.fits scfile=/scratch/kocevski/946273/ft2_4FGL_J0902.4+2051_daily_bin1479.fits outfile=/scratch/kocevski/946273/cmap_HighResolution_622684801_622944001_4FGL_J0902.4+2051_daily_bin1479.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.45
user 0.30
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3760       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3565       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.592       1.0000         .10000E-03   10000.    
     6 'norm      '    .67717       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12774E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.706       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .67043       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4673       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6286       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .89755       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1184       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=   6084.635     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1740 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.482        .20268E-05** at limit **
   2  norm          2.3767        1.2872       -.16019E-06   -.26884E-03
   3  Prefactor     .10000E-03    4.8003        .96398E-07** at limit **
   4  Prefactor     2.3583        6.1648       -.72421E-05   -.49858E-03
   5  Prefactor     39.588        41.807       -.44914E-05    .40281E-04
   6  norm          .67716        .55251        .19295E-07    .10853E-02
   7  Prefactor     .10014E-03    5.8432       -.19868E-05** at limit **
   8  Prefactor     36.714        21.959        .55662E-05    .16288E-03
   9  norm          .10000E-03    2.0584        .16074E-07** at limit **
  10  norm          .10000E-03    19.575        .63920E-05** at limit **
  11  norm          .67170        1.4770       -.86458E-06   -.21208E-02
  12  Prefactor     .10000E-03    24.892        .52301E-06** at limit **
  13  Prefactor     1.4686        2.9072       -.11502E-05   -.81884E-03
  14  Prefactor     .10000E-03    13.862        .51750E-06** at limit **
  15  Prefactor     .10000E-03    16.875       -.66004E-05** at limit **
  16  Prefactor     7.6093        30.008       -.47432E-04   -.54082E-05
  17  Normalizat    .89704        .18743        .18929E-05    .30055E-03
  18  Prefactor     1.1189        .15886        .84288E-06    .32248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.37668
  Prefactor  = 0.0001
  Prefactor  = 2.3583
  Prefactor  = 39.5883
  norm       = 0.677157
  Prefactor  = 0.00010014
  Prefactor  = 36.7139
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.671704
  Prefactor  = 0.0001
  Prefactor  = 1.46863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.60929
  Normalizat = 0.897039
  Prefactor  = 1.11885
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.635     FROM HESSE     STATUS=OK           246 CALLS     1986 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3767        1.2816        .61787E-04   -1.5400    
   3  Prefactor     .10000E-03    4.8307        .16678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3583        6.2232        .26699E-03   -1.5401    
   5  Prefactor     39.588        41.858        .63702E-04   -1.4449    
   6  norm          .67716        .56225        .49807E-03   -1.5543    
   7  Prefactor     .10014E-03    35.777        .35919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.714        22.091        .66150E-04   -1.4495    
   9  norm          .10000E-03    2.0591        .10930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    19.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .67170        1.3595        .13517E-02   -1.5544    
  12  Prefactor     .10000E-03    24.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4686        2.8666        .17684E-03   -1.5466    
  14  Prefactor     .10000E-03    13.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6093        29.815        .14519E-03   -1.5156    
  17  Normalizat    .89704        .21457        .26397E-03   -.96564    
  18  Prefactor     1.1189        .18236        .21683E-03   -.88866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92888e-09
Minuit parameter uncertainties:
  1  2.53301e-05
  2  1.28158
  3  1.58942e-05
  4  6.22493
  5  41.889
  6  0.562255
  7  0.00447396
  8  22.096
  9  5.1684e-07
  10  4.00749e-05
  11  1.35952
  12  3.58847e-05
  13  2.86688
  14  1.43234e-05
  15  1.63707e-05
  16  29.8737
  17  0.21477
  18  0.182465
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.001e-04  4.474e-03  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:  1.119e+00  1.825e-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:  8.970e-01  2.148e-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: 6.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946273/likelihoodResults_622684801_622944001_4FGL_J0902.4+2051_daily_bin1479.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) = 6084.63507533
delta logL = -0.000131852020786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6084.63494337
delta logL = 1.08497260953e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1952       1.0000          .0000       10.000    
     3 'Normalizat'    .89704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1189       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6084.635     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      230 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0146        .90712E-01** at limit **
   2  Index         2.2446        2.7880        .50000       -.97047E-05
   3  Normalizat    .89704        .32200E-02    .44864E-01    .74616E-04
   4  Prefactor     1.1189        .29346E-02    .36911E-01    .70867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.24465
  Normalizat = 0.897038
  Prefactor  = 1.11885
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.635     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6669.8        .36190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2446        7.7454        .50000       -.58365    
   3  Normalizat    .89704        .46633E-01    .26397E-03   -.96564    
   4  Prefactor     1.1189        .42506E-01    .21683E-03   -.88866    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.86189e-08
Minuit parameter uncertainties:
  1  0.00688637
  2  39.3032
  3  0.0466346
  4  0.0425071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946273': 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) = 6084.63494322
delta logL = 2.53418875218e-07

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  6.886e-03  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.245e+00  3.930e+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:  1.119e+00  4.251e-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:  8.970e-01  4.663e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/946273/cmap_HighResolution_622684801_622944001_4FGL_J0902.4+2051_daily_bin1479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2021-08-30 21:35:10.592574', job_id='946273', GAL2='1.12', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630384510.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1479' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:35:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 946273: <4FGL_J0902.4+2051_daily_bin1479> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1479> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 21:25:31 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:25:33 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:33 2021
Terminated at Mon Aug 30 21:35:11 2021
Results reported at Mon Aug 30 21:35:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1479 135.617 20.8503 622684801 622944001 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 :                                   409.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            580 sec.

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

