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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1215
RA = 135.617, Dec = 20.8503
tmin = 554256001, tmax = 554515201
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='944577', job_status='RUN', time_executed='2021-08-30 21:22:34.840091', time_epoch_executed='1630383754.84' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944577/ft1_4FGL_J0902.4+2051_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944577/ft2_4FGL_J0902.4+2051_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944577/ft1_4FGL_J0902.4+2051_daily_bin1215.fits outfile=/scratch/kocevski/944577/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1215.fits ra=135.617 dec=20.8503 rad=12.0 tmin=554256001.0 tmax=554515201.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 4.34
user 3.77
sys 0.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/944577/ft1_filtered_4FGL_J0902.4+2051_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/944577/ft2_4FGL_J0902.4+2051_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/944577/ltcube_554256001_554515201_4FGL_J0902.4+2051_daily_bin1215.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/944577/ft2_4FGL_J0902.4+2051_daily_bin1215.fits
.....................!
real 12.38
user 11.70
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944577/ft1_filtered_4FGL_J0902.4+2051_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/944577/ft2_4FGL_J0902.4+2051_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/944577/ltcube_554256001_554515201_4FGL_J0902.4+2051_daily_bin1215.fits outfile=/scratch/kocevski/944577/expmap_554256001_554515201_4FGL_J0902.4+2051_daily_bin1215.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/944577/ltcube_554256001_554515201_4FGL_J0902.4+2051_daily_bin1215.fits
.....................!
real 192.22
user 187.55
sys 4.28

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/944577/ft1_filtered_4FGL_J0902.4+2051_daily_bin1215.fits scfile=/scratch/kocevski/944577/ft2_4FGL_J0902.4+2051_daily_bin1215.fits outfile=/scratch/kocevski/944577/cmap_554256001_554515201_4FGL_J0902.4+2051_daily_bin1215.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.81
user 0.37
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/944577/ft1_filtered_4FGL_J0902.4+2051_daily_bin1215.fits scfile=/scratch/kocevski/944577/ft2_4FGL_J0902.4+2051_daily_bin1215.fits outfile=/scratch/kocevski/944577/cmap_HighResolution_554256001_554515201_4FGL_J0902.4+2051_daily_bin1215.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.83
user 0.38
sys 0.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    304.95       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    64.437       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5215       1.0000         .10000E-03   10000.    
    14 'Prefactor '    73.160       1.0000         .10000E-03   10000.    
    15 'Prefactor '    139.24       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3663       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .20334       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.9022       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=   2611.412     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     2033 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     304.88        184.91       -.69566E-05   -.11838E-03
   2  norm          .10000E-03    4.4910       -.61168E-06** at limit **
   3  Prefactor     .10042E-03    57.608       -.13589E-05** at limit **
   4  Prefactor     64.423        28.531        .15041E-05    .51010E-03
   5  Prefactor     .10000E-03    18.760        .49280E-07** at limit **
   6  norm          .10000E-03    2.0198        .38440E-06** at limit **
   7  Prefactor     .10000E-03    9.8922        .47488E-08** at limit **
   8  Prefactor     .10000E-03    40.185        .64028E-07** at limit **
   9  norm          .10000E-03    5.8666        .25750E-07** at limit **
  10  norm          .10000E-03    28.219       -.78046E-07** at limit **
  11  norm          .10000E-03    10.433       -.10129E-05** at limit **
  12  Prefactor     .10000E-03    55.756       -.51682E-06** at limit **
  13  Prefactor     4.5226        14.062        .59049E-05   -.28476E-03
  14  Prefactor     73.160        91.246       -.15153E-05   -.18279E-04
  15  Prefactor     139.24        137.37       -.39604E-06   -.22956E-04
  16  Prefactor     6.3809        85.350       -.18820E-05   -.28328E-04
  17  Normalizat    .20323        .58433        .73508E-05    .23664E-04
  18  Prefactor     1.9022        .50585       -.34747E-05   -.30586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 304.882
  norm       = 0.0001
  Prefactor  = 0.00010042
  Prefactor  = 64.4226
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.52263
  Prefactor  = 73.1604
  Prefactor  = 139.236
  Prefactor  = 6.38089
  Normalizat = 0.203233
  Prefactor  = 1.90218
 **********
 **   18 **HESSE 
 **********

 FCN=   2611.412     FROM HESSE     STATUS=OK           240 CALLS     2273 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     304.88        185.77        .11632E-03   -1.2198    
   2  norm          .10000E-03    4.4886        .10509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10042E-03    462.96        .68033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     64.423        27.447        .49993E-04   -1.4101    
   5  Prefactor     .10000E-03    18.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.1556        .13616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.8954        .15699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.8807        .12089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    28.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.711        .16177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    55.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5226        14.054        .94666E-03   -1.5283    
  14  Prefactor     73.160        91.018        .46939E-04   -1.3995    
  15  Prefactor     139.24        135.80        .34138E-04   -1.3342    
  16  Prefactor     6.3809        82.062        .15908E-03   -1.5203    
  17  Normalizat    .20323        .39361        .64525E-03   -1.2917    
  18  Prefactor     1.9022        .35551        .20565E-03   -.66819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17917e-09
Minuit parameter uncertainties:
  1  186.134
  2  7.64911e-05
  3  0.0281126
  4  27.4523
  5  4.55793e-06
  6  0.000150498
  7  3.1431e-06
  8  1.24907e-05
  9  3.85676e-06
  10  1.05106e-05
  11  0.000138848
  12  0.000108645
  13  14.0638
  14  91.1921
  15  136.106
  16  45.843
  17  0.399183
  18  0.356002
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  3.143e-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.902e+00  3.560e-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:  2.032e-01  3.992e-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: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/944577/likelihoodResults_554256001_554515201_4FGL_J0902.4+2051_daily_bin1215.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) = 2611.41223091
delta logL = -0.000448230359325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2611.41178262
delta logL = 6.08206391917e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1272       1.0000          .0000       10.000    
     3 'Normalizat'    .20322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.9022       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=   2611.412     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      249 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    134.92        .15925E-02** at limit **
   2  Index         2.0577        5.3112        .50000        .13007E-04
   3  Normalizat    .20323        .29064E-01    .64526E-03   -.72236E-06
   4  Prefactor     1.9022        .26244E-01    .20565E-03    .16584E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101732
  Index      = 2.0577
  Normalizat = 0.203229
  Prefactor  = 1.90218
 **********
 **   18 **HESSE 
 **********

 FCN=   2611.412     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10173E-03    542.74        .31851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0577        5.0888        .50000       -.62915    
   3  Normalizat    .20323        .61533E-01    .25811E-04   -1.2917    
   4  Prefactor     1.9022        .55574E-01    .82261E-05   -.66819    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.06387e-08
Minuit parameter uncertainties:
  1  0.061894
  2  922.209
  3  0.0615533
  4  0.0555758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944577': 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) = 2611.41178244
delta logL = 2.31660123973e-07

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.017e-04  6.189e-02  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  2.058e+00  9.222e+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.902e+00  5.558e-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:  2.032e-01  6.155e-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/944577/cmap_HighResolution_554256001_554515201_4FGL_J0902.4+2051_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.57e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-08-30 21:29:48.261755', job_id='944577', GAL2='1.90', fit_tolerance='1e-08', EG2='0.20', EG='0.20', time_epoch_completed='1630384188.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.90', dlogl='2.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1215' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:29:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 944577: <4FGL_J0902.4+2051_daily_bin1215> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1215> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Aug 30 21:20:29 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:20:30 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:20:30 2021
Terminated at Mon Aug 30 21:29:49 2021
Results reported at Mon Aug 30 21:29:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1215 135.617 20.8503 554256001 554515201 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 :                                   425.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            560 sec.

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

