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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1483
RA = 135.617, Dec = 20.8503
tmin = 623721601, tmax = 623980801
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='946279', job_status='RUN', time_executed='2021-08-30 21:28:21.589747', time_epoch_executed='1630384101.59' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946279

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946279/ft1_4FGL_J0902.4+2051_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946279/ft2_4FGL_J0902.4+2051_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946279/ft1_4FGL_J0902.4+2051_daily_bin1483.fits outfile=/scratch/kocevski/946279/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1483.fits ra=135.617 dec=20.8503 rad=12.0 tmin=623721601.0 tmax=623980801.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.21
user 4.96
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946279/ft1_filtered_4FGL_J0902.4+2051_daily_bin1483.fits" evtable="EVENTS" scfile=/scratch/kocevski/946279/ft2_4FGL_J0902.4+2051_daily_bin1483.fits sctable="SC_DATA" outfile=/scratch/kocevski/946279/ltcube_623721601_623980801_4FGL_J0902.4+2051_daily_bin1483.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/946279/ft2_4FGL_J0902.4+2051_daily_bin1483.fits
.....................!
real 11.40
user 11.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946279/ft1_filtered_4FGL_J0902.4+2051_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/946279/ft2_4FGL_J0902.4+2051_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/946279/ltcube_623721601_623980801_4FGL_J0902.4+2051_daily_bin1483.fits outfile=/scratch/kocevski/946279/expmap_623721601_623980801_4FGL_J0902.4+2051_daily_bin1483.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/946279/ltcube_623721601_623980801_4FGL_J0902.4+2051_daily_bin1483.fits
.....................!
real 188.81
user 184.49
sys 3.91

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/946279/ft1_filtered_4FGL_J0902.4+2051_daily_bin1483.fits scfile=/scratch/kocevski/946279/ft2_4FGL_J0902.4+2051_daily_bin1483.fits outfile=/scratch/kocevski/946279/cmap_623721601_623980801_4FGL_J0902.4+2051_daily_bin1483.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.55
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946279/ft1_filtered_4FGL_J0902.4+2051_daily_bin1483.fits scfile=/scratch/kocevski/946279/ft2_4FGL_J0902.4+2051_daily_bin1483.fits outfile=/scratch/kocevski/946279/cmap_HighResolution_623721601_623980801_4FGL_J0902.4+2051_daily_bin1483.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4529       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25649E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9009       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9567       1.0000         .10000E-03   10000.    
     9 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.711       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41620E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.703       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16466E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5878       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4281       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .64286       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=   5845.172     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1767 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4729        40.721        .73644E-05    .14572E-03
   2  norm          .10000E-03    .68076       -.14727E-05** at limit **
   3  Prefactor     .10020E-03    8.6762        .30045E-05** at limit **
   4  Prefactor     3.8910        5.9158        .20648E-06   -.14848E-03
   5  Prefactor     .10000E-03    18.987       -.31715E-07** at limit **
   6  norm          .10000E-03    .24543        .42364E-07** at limit **
   7  Prefactor     .10000E-03    24.453        .37758E-07** at limit **
   8  Prefactor     2.9562        14.552        .25803E-06   -.14221E-04
   9  norm          .10000E-03    2.8489        .24897E-07** at limit **
  10  norm          13.680        29.305       -.25104E-06   -.15554E-04
  11  norm          .10000E-03    .78966        .54088E-08** at limit **
  12  Prefactor     .10000E-03    180.75        .29217E-05** at limit **
  13  Prefactor     .10000E-03    1.6200       -.15866E-06** at limit **
  14  Prefactor     39.645        36.337       -.35546E-05   -.38807E-03
  15  Prefactor     .10000E-03    46.392       -.11879E-06** at limit **
  16  Prefactor     6.6013        39.031        .51005E-06    .21078E-04
  17  Normalizat    1.4278        .18211        .14374E-05   -.40233E-04
  18  Prefactor     .64292        .15043       -.10700E-05    .81286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.47289
  norm       = 0.0001
  Prefactor  = 0.000100196
  Prefactor  = 3.89102
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95616
  norm       = 0.0001
  norm       = 13.6795
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 39.6447
  Prefactor  = 0.0001
  Prefactor  = 6.60132
  Normalizat = 1.42782
  Prefactor  = 0.642917
 **********
 **   18 **HESSE 
 **********

 FCN=   5845.172     FROM HESSE     STATUS=OK           244 CALLS     2011 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4729        47.885        .26117E-03   -1.5393    
   2  norm          .10000E-03    .91582        .11327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10020E-03    28.227        .38263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8910        5.8919        .20428E-03   -1.5313    
   5  Prefactor     .10000E-03    19.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .29345        .73355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.032        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9562        14.558        .23617E-03   -1.5364    
   9  norm          .10000E-03    2.8554        .12602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.680        29.285        .10817E-03   -1.4968    
  11  norm          .10000E-03    .82099        .13265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    187.69        .38889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6390        .94943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.645        37.450        .63613E-04   -1.4448    
  15  Prefactor     .10000E-03    46.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.6013        39.069        .15635E-03   -1.5194    
  17  Normalizat    1.4278        .21130        .21172E-03   -.79827    
  18  Prefactor     .64292        .17521        .25644E-03   -1.0581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8456e-09
Minuit parameter uncertainties:
  1  21.7832
  2  6.24261e-07
  3  0.00470722
  4  5.89276
  5  3.66221e-05
  6  3.69143e-06
  7  8.48638e-05
  8  13.1251
  9  5.4815e-07
  10  29.3161
  11  3.89223e-07
  12  0.00124855
  13  2.10962e-06
  14  37.4719
  15  3.86936e-05
  16  32.1504
  17  0.211432
  18  0.175357
Done.

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

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  8.486e-05  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:  6.429e-01  1.754e-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.428e+00  2.114e-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: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946279/likelihoodResults_623721601_623980801_4FGL_J0902.4+2051_daily_bin1483.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) = 5845.17169547
delta logL = -0.000190526879123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5845.17150418
delta logL = 7.5706611824e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31486E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2718       1.0000          .0000       10.000    
     3 'Normalizat'    1.4278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64289       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=   5844.952     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      292 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1849        108.05        .10685E-01   -.17792E-02
   2  Index         3.3887        6.6912        .12519        .18004E-03
   3  Normalizat    1.3896        .10910        .48426E-01   -.23426E-03
   4  Prefactor     .65851        .69201E-01    .41636E-01   -.30451E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18487
  Index      = 3.38867
  Normalizat = 1.38957
  Prefactor  = 0.658512
 **********
 **   18 **HESSE 
 **********

 FCN=   5844.952     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      323 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1849        135.21        .12188E-03   -1.5926    
   2  Index         3.3887        6.0185        .74947E-02   -.32812    
   3  Normalizat    1.3896        .21307        .21408E-03   -.80931    
   4  Prefactor     .65851        .18535        .25355E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82686e-09
Minuit parameter uncertainties:
  1  25.3726
  2  9.44593
  3  0.213206
  4  0.185525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946279': 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) = 5844.95203177
delta logL = 0.219473173636

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  1.185e+00  2.537e+01  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  3.389e+00  9.446e+00  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:  6.585e-01  1.855e-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.390e+00  2.132e-01  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/946279/cmap_HighResolution_623721601_623980801_4FGL_J0902.4+2051_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-08-30 21:38:19.283046', job_id='946279', GAL2='0.66', fit_tolerance='1e-08', EG2='1.39', EG='1.43', time_epoch_completed='1630384699.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='2.19e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1483' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:38:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 946279: <4FGL_J0902.4+2051_daily_bin1483> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1483> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 21:25:32 2021
Job was executed on host(s) <bullet0259>, 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:38:20 2021
Results reported at Mon Aug 30 21:38:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1483 135.617 20.8503 623721601 623980801 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 :                                   542.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            768 sec.

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

