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


Performing analysis on: 4FGL_J0902.4+2051_daily_bin1040
RA = 135.617, Dec = 20.8503
tmin = 508896001, tmax = 509155201
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='943228', job_status='RUN', time_executed='2021-08-30 21:17:28.610525', time_epoch_executed='1630383448.61' WHERE source_name='4FGL J0902.4+2051' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943228

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943228/ft1_4FGL_J0902.4+2051_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943228/ft2_4FGL_J0902.4+2051_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943228/ft1_4FGL_J0902.4+2051_daily_bin1040.fits outfile=/scratch/kocevski/943228/ft1_filteredMKT_4FGL_J0902.4+2051_daily_bin1040.fits ra=135.617 dec=20.8503 rad=12.0 tmin=508896001.0 tmax=509155201.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 7.66
user 3.47
sys 4.10

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/943228/ft1_filtered_4FGL_J0902.4+2051_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/943228/ft2_4FGL_J0902.4+2051_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/943228/ltcube_508896001_509155201_4FGL_J0902.4+2051_daily_bin1040.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/943228/ft2_4FGL_J0902.4+2051_daily_bin1040.fits
.....................!
real 16.19
user 11.38
sys 4.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943228/ft1_filtered_4FGL_J0902.4+2051_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/943228/ft2_4FGL_J0902.4+2051_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/943228/ltcube_508896001_509155201_4FGL_J0902.4+2051_daily_bin1040.fits outfile=/scratch/kocevski/943228/expmap_508896001_509155201_4FGL_J0902.4+2051_daily_bin1040.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/943228/ltcube_508896001_509155201_4FGL_J0902.4+2051_daily_bin1040.fits
.....................!
real 194.97
user 185.19
sys 9.38

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/943228/ft1_filtered_4FGL_J0902.4+2051_daily_bin1040.fits scfile=/scratch/kocevski/943228/ft2_4FGL_J0902.4+2051_daily_bin1040.fits outfile=/scratch/kocevski/943228/cmap_508896001_509155201_4FGL_J0902.4+2051_daily_bin1040.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=135.617 yref=20.8503 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 4.12
user 0.36
sys 3.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/943228/ft1_filtered_4FGL_J0902.4+2051_daily_bin1040.fits scfile=/scratch/kocevski/943228/ft2_4FGL_J0902.4+2051_daily_bin1040.fits outfile=/scratch/kocevski/943228/cmap_HighResolution_508896001_509155201_4FGL_J0902.4+2051_daily_bin1040.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=135.617 yref=20.8503 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 4.48
user 0.38
sys 4.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20589E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.172       1.0000         .10000E-03   10000.    
     6 'norm      '    .69554       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2631       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62579E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2160       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0206       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=   6136.011     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1824 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.999       -.40229E-05** at limit **
   2  norm          .10000E-03    .60397        .24306E-06** at limit **
   3  Prefactor     .10000E-03    19.261       -.16951E-04** at limit **
   4  Prefactor     .10000E-03    4.2461       -.90826E-08** at limit **
   5  Prefactor     30.198        41.042        .18579E-04    .40382E-05
   6  norm          .69566        .59755        .83665E-07    .20058E-03
   7  Prefactor     7.2614        11.307       -.61856E-06   -.41231E-04
   8  Prefactor     .18739        14.855        .78716E-06   -.62772E-04
   9  norm          .10000E-03    3.0602       -.26618E-06** at limit **
  10  norm          .10000E-03    62.375       -.52964E-06** at limit **
  11  norm          .10000E-03    .91513        .38682E-07** at limit **
  12  Prefactor     .10000E-03    14.863        .38196E-05** at limit **
  13  Prefactor     .10000E-03    3.8010        .10451E-06** at limit **
  14  Prefactor     .10000E-03    35.565       -.62547E-05** at limit **
  15  Prefactor     .10000E-03    19.100        .16549E-04** at limit **
  16  Prefactor     .10000E-03    30.325        .77763E-05** at limit **
  17  Normalizat    1.2156        .18807       -.15542E-05    .20402E-03
  18  Prefactor     1.0207        .15973       -.56927E-06    .98871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 30.1978
  norm       = 0.695656
  Prefactor  = 7.26136
  Prefactor  = 0.187386
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21558
  Prefactor  = 1.02072
 **********
 **   18 **HESSE 
 **********

 FCN=   6136.011     FROM HESSE     STATUS=OK           246 CALLS     2070 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .98457        .11774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.689        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4041        .31519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.198        41.126        .72941E-04   -1.4608    
   6  norm          .69566        .58563        .53480E-04   -1.5541    
   7  Prefactor     7.2614        11.286        .14883E-03   -1.5169    
   8  Prefactor     .18739        22.109        .81793E-01   -1.5621    
   9  norm          .10000E-03    3.0703        .13382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    62.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .93116        .73140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9235        .29791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2156        .22474        .24652E-03   -.86123    
  18  Prefactor     1.0207        .19039        .23217E-03   -.92042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1106e-10
Minuit parameter uncertainties:
  1  3.76452e-05
  2  2.23588e-05
  3  0.000426967
  4  6.34967e-06
  5  41.1643
  6  0.585639
  7  11.2894
  8  4.07127
  9  1.47125e-06
  10  0.000145265
  11  2.73013e-06
  12  7.304e-06
  13  2.09357e-05
  14  8.71705e-05
  15  5.8942e-06
  16  2.31852e-05
  17  0.224922
  18  0.190512
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.021e+00  1.905e-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.216e+00  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 135.617 20.850
Photon Flux Upper Limit: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/943228/likelihoodResults_508896001_509155201_4FGL_J0902.4+2051_daily_bin1040.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) = 6135.23384066
delta logL = 0.776985587261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6135.15409796
delta logL = 0.856728288667

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6703       1.0000         .10000E-03   10000.    
     2 'Index     '    .96378       1.0000          .0000       10.000    
     3 'Normalizat'    1.2233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0212       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=   6135.154     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      206 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6703        4.3027        .52708E-02   -.12413E-02
   2  Index         .96379        .45418        .26970       -.11464E-03
   3  Normalizat    1.2233        .18189        .55576E-01   -.11856E-04
   4  Prefactor     1.0212        .15942        .42026E-01    .18297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.67035
  Index      = 0.963788
  Normalizat = 1.2233
  Prefactor  = 1.02118
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.154     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6703        6.6505        .16836E-03   -1.5325    
   2  Index         .96379        .71902        .11582E-01   -.93947    
   3  Normalizat    1.2233        .21660        .24575E-03   -.85886    
   4  Prefactor     1.0212        .18992        .23210E-03   -.92027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.661e-09
Minuit parameter uncertainties:
  1  6.65181
  2  0.726327
  3  0.216756
  4  0.19004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943228': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6135.15409796
delta logL = 0.85672829108

Extracting fit parameters...

4FGL J0902.4+2051
   Spectrum: PowerLaw
298    Prefactor:  3.670e+00  6.652e+00  1.000e-04  1.000e+04 ( 1.000e-13)
299        Index:  9.638e-01  7.263e-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.021e+00  1.900e-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.223e+00  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 135.617 20.850
Photon Index (Free Index): 0.96 +/- 0.73
Photon Flux (Free Index): 3.63e-09 +/- 4.88e-09
Energy Flux (Free Index): 5.73e-05 +/- 8.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/943228/cmap_HighResolution_508896001_509155201_4FGL_J0902.4+2051_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', comment='SUCCESS', energy_flux2='5.73e-05', dlogl='8.57e-01', photon_flux2='3.63e-09', job_status='DONE', time_completed='2021-08-30 21:27:51.434088', photon_index_error2='0.73', photon_index2='0.96', ts='0.61', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='9.04e-08', energy_flux_error2='8.76e-05', EG='1.22', time_epoch_completed='1630384071.43', return_code='0', job_id='943228', GAL2='1.02', EG2='1.22', return_code2='0', photon_flux_error2='4.88e-09', ts2='2.33', photon_index='2.15' WHERE bin_id='1040' AND source_name='4FGL J0902.4+2051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:27:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 943228: <4FGL_J0902.4+2051_daily_bin1040> in cluster <slac> Done

Job <4FGL_J0902.4+2051_daily_bin1040> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Aug 30 21:15:52 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:15:53 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:15:53 2021
Terminated at Mon Aug 30 21:27:52 2021
Results reported at Mon Aug 30 21:27:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0902.4+2051_daily_bin1040 135.617 20.8503 508896001 509155201 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 :                                   677.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            720 sec.

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

