/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 9 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0902.4+2051_daily_bin368
RA = 135.617, Dec = 20.8503
tmin = 334713601, tmax = 334972801
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='939605', job_status='RUN', time_executed='2021-08-30 21:06:19.376720', time_epoch_executed='1630382779.38' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939605/ft1_4FGL_J0902.4+2051_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939605/ft2_4FGL_J0902.4+2051_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939605/ft1_4FGL_J0902.4+2051_daily_bin368.fits outfile=/scratch/kocevski/939605/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin368.fits ra=135.617 dec=20.8503 rad=12.0 tmin=334713601.0 tmax=334972801.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.47
user 3.26
sys 2.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/939605/ft1_filtered_4FGL_J0902.4+2051_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/939605/ft2_4FGL_J0902.4+2051_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/939605/ltcube_334713601_334972801_4FGL_J0902.4+2051_daily_bin368.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/939605/ft2_4FGL_J0902.4+2051_daily_bin368.fits
.....................!
real 14.66
user 12.01
sys 2.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939605/ft1_filtered_4FGL_J0902.4+2051_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/939605/ft2_4FGL_J0902.4+2051_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/939605/ltcube_334713601_334972801_4FGL_J0902.4+2051_daily_bin368.fits outfile=/scratch/kocevski/939605/expmap_334713601_334972801_4FGL_J0902.4+2051_daily_bin368.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/939605/ltcube_334713601_334972801_4FGL_J0902.4+2051_daily_bin368.fits
.....................!
real 196.30
user 187.77
sys 7.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/939605/ft1_filtered_4FGL_J0902.4+2051_daily_bin368.fits scfile=/scratch/kocevski/939605/ft2_4FGL_J0902.4+2051_daily_bin368.fits outfile=/scratch/kocevski/939605/cmap_334713601_334972801_4FGL_J0902.4+2051_daily_bin368.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 2.44
user 0.37
sys 2.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939605/ft1_filtered_4FGL_J0902.4+2051_daily_bin368.fits scfile=/scratch/kocevski/939605/ft2_4FGL_J0902.4+2051_daily_bin368.fits outfile=/scratch/kocevski/939605/cmap_HighResolution_334713601_334972801_4FGL_J0902.4+2051_daily_bin368.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 2.45
user 0.38
sys 2.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3703       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1379       1.0000         .10000E-03   10000.    
     9 'norm      '    3.2182       1.0000         .10000E-03   10000.    
    10 'norm      '    23.063       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.188       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .89927E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.683       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4432       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3299       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=   7612.327     FROM MIGRAD    STATUS=CONVERGED    353 CALLS     1716 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9879        .51374E-06** at limit **
   2  norm          .10000E-03    .52008       -.64474E-07** at limit **
   3  Prefactor     .10000E-03    5.0961       -.17163E-08** at limit **
   4  Prefactor     .10000E-03    1.5728       -.12281E-07** at limit **
   5  Prefactor     .10000E-03    18.139       -.85383E-05** at limit **
   6  norm          1.3703        .73043       -.31794E-07   -.31609E-03
   7  Prefactor     .10000E-03    3.3634        .55615E-07** at limit **
   8  Prefactor     3.1369        16.905       -.12239E-05   -.13685E-03
   9  norm          3.2181        4.2782       -.82725E-06   -.43965E-04
  10  norm          23.061        37.320       -.27619E-05   -.14981E-04
  11  norm          .10000E-03    .56562        .11799E-07** at limit **
  12  Prefactor     20.181        45.326       -.12650E-04   -.26659E-04
  13  Prefactor     .10051E-03    2.4663        .98759E-06** at limit **
  14  Prefactor     .10000E-03    29.164        .42578E-04** at limit **
  15  Prefactor     .10000E-03    36.475       -.45009E-04** at limit **
  16  Prefactor     32.681        47.415       -.26127E-05    .47611E-05
  17  Normalizat    1.4431        .20461        .33101E-06   -.27518E-03
  18  Prefactor     1.3300        .17610        .60189E-06   -.19186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37029
  Prefactor  = 0.0001
  Prefactor  = 3.13694
  norm       = 3.21812
  norm       = 23.0615
  norm       = 0.0001
  Prefactor  = 20.1811
  Prefactor  = 0.000100507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.681
  Normalizat = 1.44307
  Prefactor  = 1.33001
 **********
 **   18 **HESSE 
 **********

 FCN=   7612.327     FROM HESSE     STATUS=OK           242 CALLS     1958 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .91163        .12201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5745        .10686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3703        .72050        .52498E-04   -1.5474    
   7  Prefactor     .10000E-03    3.3655        .15626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1369        16.855        .22885E-03   -1.5354    
   9  norm          3.2181        4.2728        .20305E-03   -1.5349    
  10  norm          23.061        37.317        .83407E-04   -1.4747    
  11  norm          .10000E-03    .56719        .64059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.181        45.321        .89143E-04   -1.4809    
  13  Prefactor     .10051E-03    35.794        .25795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.681        47.410        .70091E-04   -1.4564    
  17  Normalizat    1.4431        .24386        .28328E-03   -.79391    
  18  Prefactor     1.3300        .21338        .25703E-03   -.82419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36644e-08
Minuit parameter uncertainties:
  1  3.38473e-06
  2  2.02264e-06
  3  3.84262e-06
  4  4.75533e-07
  5  3.5137e-07
  6  0.720503
  7  2.08605e-06
  8  14.5487
  9  4.27322
  10  37.3548
  11  9.42927e-07
  12  45.3986
  13  0.00852889
  14  7.95711e-05
  15  1.54821e-05
  16  47.4643
  17  0.244053
  18  0.213523
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  2.086e-06  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.145e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.330e+00  2.135e-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.443e+00  2.441e-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: 4.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/939605/likelihoodResults_334713601_334972801_4FGL_J0902.4+2051_daily_bin368.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7612.32826143
delta logL = -0.00135054320708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7612.32691088
delta logL = 6.01539795753e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1221       1.0000          .0000       10.000    
     3 'Normalizat'    1.4432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3299       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=   7612.327     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10249E-03    3.6932        .15973E-01** at limit **
   2  Index         2.0428        7.8808        .50000        .47275E-04
   3  Normalizat    1.4431        .52072E-02    .28328E-03    .59716E-04
   4  Prefactor     1.3300        .45824E-02    .25703E-03   -.18312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102486
  Index      = 2.04285
  Normalizat = 1.44308
  Prefactor  = 1.33001
 **********
 **   18 **HESSE 
 **********

 FCN=   7612.327     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10249E-03    42.953        .16360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0428        8.5984        .50000       -.63283    
   3  Normalizat    1.4431        .17947E-01    .11331E-04   -.79391    
   4  Prefactor     1.3300        .15793E-01    .10281E-04   -.82419    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79383e-08
Minuit parameter uncertainties:
  1  0.0206812
  2  242.187
  3  0.0179468
  4  0.0157934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939605': 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) = 7612.3269099
delta logL = 9.85170117929e-07

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.025e-04  2.068e-02  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.043e+00  2.422e+02  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.330e+00  1.579e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.443e+00  1.795e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-03', job_status='DONE', photon_flux_upper_limit='4.50e-08', time_completed='2021-08-30 21:16:58.430495', job_id='939605', GAL2='1.33', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630383418.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='9.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='368' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 939605: <4FGL_J0902.4+2051_daily_bin368> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin368> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 30 21:05:27 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:05:29 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:05:29 2021
Terminated at Mon Aug 30 21:17:01 2021
Results reported at Mon Aug 30 21:17:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin368 135.617 20.8503 334713601 334972801 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 :                                   660.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            694 sec.

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

