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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin16
RA = 230.464, Dec = 43.6344
tmin = 243475201, tmax = 243734401
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='496374', job_status='RUN', time_executed='2021-09-12 01:36:02.072654', time_epoch_executed='1631435762.07' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496374

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496374/ft1_4FGL_J1521.8+4338_daily_bin16.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496374/ft2_4FGL_J1521.8+4338_daily_bin16.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496374/ft1_4FGL_J1521.8+4338_daily_bin16.fits outfile=/scratch/kocevski/496374/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin16.fits ra=230.464 dec=43.6344 rad=12.0 tmin=243475201.0 tmax=243734401.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 1.39
user 1.21
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/496374/ft2_4FGL_J1521.8+4338_daily_bin16.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496374/ft2_4FGL_J1521.8+4338_daily_bin16.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/496374/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin16.fits evtable="EVENTS" outfile="/scratch/kocevski/496374/ft1_filtered_4FGL_J1521.8+4338_daily_bin16.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496374/ft1_filtered_4FGL_J1521.8+4338_daily_bin16.fits" evtable="EVENTS" scfile=/scratch/kocevski/496374/ft2_4FGL_J1521.8+4338_daily_bin16.fits sctable="SC_DATA" outfile=/scratch/kocevski/496374/ltcube_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.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/496374/ft2_4FGL_J1521.8+4338_daily_bin16.fits
.....................!
real 12.95
user 12.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496374/ft1_filtered_4FGL_J1521.8+4338_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/496374/ft2_4FGL_J1521.8+4338_daily_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/496374/ltcube_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.fits outfile=/scratch/kocevski/496374/expmap_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.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/496374/ltcube_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.fits
.....................!
real 190.17
user 185.08
sys 4.79

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1521.8+4338 @ 230.464 43.6344

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/496374/ft1_filtered_4FGL_J1521.8+4338_daily_bin16.fits scfile=/scratch/kocevski/496374/ft2_4FGL_J1521.8+4338_daily_bin16.fits outfile=/scratch/kocevski/496374/cmap_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.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=230.464 yref=43.6344 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496374/ft1_filtered_4FGL_J1521.8+4338_daily_bin16.fits scfile=/scratch/kocevski/496374/ft2_4FGL_J1521.8+4338_daily_bin16.fits outfile=/scratch/kocevski/496374/cmap_HighResolution_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.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=230.464 yref=43.6344 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496374/ft1_filtered_4FGL_J1521.8+4338_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/496374/ft2_4FGL_J1521.8+4338_daily_bin16.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496374/Model_4FGL_J1521.8+4338_daily_bin16.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/496374/ft1_filtered_4FGL_J1521.8+4338_daily_bin16.fits.....................!
real 48.08
user 46.80
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496374/ft1_filtered_4FGL_J1521.8+4338_daily_bin16.fits', '/scratch/kocevski/496374/ft2_4FGL_J1521.8+4338_daily_bin16.fits', expMap='/scratch/kocevski/496374/expmap_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.fits', expCube='/scratch/kocevski/496374/ltcube_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496374/Model_4FGL_J1521.8+4338_daily_bin16.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1521.8+4338'

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  3.344e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.936e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/496374/ft1_filtered_4FGL_J1521.8+4338_daily_bin16.fits
Spacecraft file(s): /scratch/kocevski/496374/ft2_4FGL_J1521.8+4338_daily_bin16.fits
Exposure map: /scratch/kocevski/496374/expmap_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.fits
Exposure cube: /scratch/kocevski/496374/ltcube_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496374/Model_4FGL_J1521.8+4338_daily_bin16.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) = 5825.91721549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1647       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3047       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.159       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.898       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.224       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6720       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5848       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10560E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5076       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.625       1.0000         .10000E-03   10000.    
    19 'norm      '    9.3981       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .53207       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.5786       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12685E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4717       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .49837       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5825.909     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     2981 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    13.075        .20752E-05** at limit **
   2  Prefactor     .11821E-03    44.219        .74898E-05** at limit **
   3  Prefactor     5.1679        1.0212       -.10386E-06    .37794E-04
   4  norm          1.3061        4.3112        .14873E-04    .12928E-02
   5  Prefactor     .10057E-03    22.758        .50573E-05** at limit **
   6  Prefactor     .10041E-03    10.593       -.39083E-06** at limit **
   7  norm          18.160        1.0069        .10681E-06    .14219E-03
   8  Prefactor     20.899        1.0052        .19376E-07    .24372E-03
   9  Prefactor     35.214        1.2222        .18317E-06   -.12577E-02
  10  norm          1.6723        1.4815        .31959E-06    .48580E-04
  11  Prefactor     5.5834        1.0357        .20449E-06    .11171E-03
  12  Prefactor     .10000E-03    3.1157        .77828E-06** at limit **
  13  norm          .10000E-03    1.4307       -.78534E-06** at limit **
  14  norm          2.5715        3.7583        .35453E-05    .79443E-03
  15  Prefactor     2.5079        1.3504        .56983E-06    .28128E-03
  16  Prefactor     .10002E-03    9.1948       -.14264E-05** at limit **
  17  Prefactor     .10004E-03    9.1103       -.46113E-05** at limit **
  18  Prefactor     12.621        1.1012        .26734E-06   -.27214E-03
  19  norm          9.3983        2.4718        .72226E-07    .92307E-04
  20  Prefactor     .10001E-03    8.2215        .93657E-06** at limit **
  21  norm          .10000E-03    6.9054       -.81606E-06** at limit **
  22  Prefactor     .54896        2.1402       -.46691E-05    .75687E-03
  23  Prefactor     .12639E-03    44.338        .68023E-05** at limit **
  24  Prefactor     5.5640        1.2838       -.28769E-06    .51788E-03
  25  Prefactor     .14409E-03    49.023        .19097E-04** at limit **
  26  Prefactor     .10000E-03    1.9482        .15366E-05** at limit **
  27  Normalizat    1.4717        .21482       -.30873E-05    .37606E-05
  28  Prefactor     .49829        .21746        .36512E-05    .70517E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100121
  Prefactor  = 0.000118211
  Prefactor  = 5.16791
  norm       = 1.30611
  Prefactor  = 0.000100568
  Prefactor  = 0.000100414
  norm       = 18.1596
  Prefactor  = 20.8987
  Prefactor  = 35.2143
  norm       = 1.67234
  Prefactor  = 5.58338
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.5715
  Prefactor  = 2.50787
  Prefactor  = 0.000100019
  Prefactor  = 0.000100036
  Prefactor  = 12.6206
  norm       = 9.39827
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 0.54896
  Prefactor  = 0.000126389
  Prefactor  = 5.56403
  Prefactor  = 0.000144094
  Prefactor  = 0.0001
  Normalizat = 1.47172
  Prefactor  = 0.498286
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.909     FROM HESSE     STATUS=OK           585 CALLS     3566 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    13.484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11821E-03    141.27        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1679        31.697        .44224E-02   -1.5253    
   4  norm          1.3061        4.3978        .96624E-02   -1.5479    
   5  Prefactor     .10057E-03    24.621        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10041E-03    17.879        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.160        10.978        .23497E-02   -1.4855    
   8  Prefactor     20.899        18.558        .21904E-02   -1.4793    
   9  Prefactor     35.214        22.161        .16881E-02   -1.4520    
  10  norm          1.6723        1.5317        .81496E-02   -1.5449    
  11  Prefactor     5.5834        7.0270        .42499E-02   -1.5235    
  12  Prefactor     .10000E-03    3.1053        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .84175        .26198E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5715        5.1651        .63609E-02   -1.5387    
  15  Prefactor     2.5079        26.929        .64511E-02   -1.5391    
  16  Prefactor     .10002E-03    20.071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10004E-03    9.1738        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.621        15.938        .28183E-02   -1.4997    
  19  norm          9.3983        2.4766        .32682E-02   -1.5095    
  20  Prefactor     .10001E-03    8.2331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.8763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .54896        13.416        .11401       -1.5560    
  23  Prefactor     .12639E-03    144.92        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.5640        7.7128        .42523E-02   -1.5236    
  25  Prefactor     .14409E-03    107.50        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.9386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4717        .19506        .47504E-01   -.78576    
  28  Prefactor     .49829        .19045        .78412E-01   -1.1206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95532e-07
Minuit parameter uncertainties:
  1  0.00255306
  2  0.101684
  3  25.6173
  4  4.39885
  5  0.00748564
  6  0.00544398
  7  10.9791
  8  18.563
  9  22.166
  10  1.53174
  11  7.02806
  12  2.23334e-06
  13  9.3459e-07
  14  5.16594
  15  16.4451
  16  0.00123526
  17  0.00114674
  18  15.9437
  19  2.47661
  20  0.000700115
  21  7.4667e-05
  22  5.42854
  23  0.123982
  24  7.71418
  25  0.137945
  26  2.14942e-06
  27  0.195157
  28  0.190694
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.262e+01  1.594e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.936e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  4.983e-01  1.907e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.472e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 4.39e-08 +/- 5.54e-08
Energy Flux (Fixed Index): 9.05e-06 +/- 1.14e-05

TS (Fixed Index): 1.64
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496374/likelihoodResults_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.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) = 5825.90745494
delta logL = 0.00166157943295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5825.90701347
delta logL = 0.0021030552216

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.263       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0019       1.0000          .0000       10.000    
     3 'Normalizat'    1.4694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50012       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+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=   5825.907     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      269 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.268        13.759        .11439E-03    .94813E-04
   2  Index         3.0012        1.0418        .11949E-01    .15845E-03
   3  Normalizat    1.4697        .21909        .21012E-03    .18135E-03
   4  Prefactor     .49983        .21860        .34678E-03   -.77337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2678
  Index      = 3.0012
  Normalizat = 1.46965
  Prefactor  = 0.499832
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.907     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.268        13.400        .45756E-05   -1.5007    
   2  Index         3.0012        1.0142        .23899E-02   -.41126    
   3  Normalizat    1.4697        .21920        .42023E-04   -.78635    
   4  Prefactor     .49983        .21866        .13871E-04   -1.1198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53248e-10
Minuit parameter uncertainties:
  1  13.4035
  2  1.02269
  3  0.219339
  4  0.219033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496374': 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) = 5825.90701242
delta logL = 0.0021040988504

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.227e+01  1.340e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  3.001e+00  1.023e+00  0.000e+00  1.000e+01 (-1.000e+00)
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  4.998e-01  2.190e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.470e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 230.464 43.634
Photon Index (Free Index): 3.00 +/- 1.02
Photon Flux (Free Index): 4.53e-08 +/- 4.88e-08
Energy Flux (Free Index): 9.04e-06 +/- 8.81e-06

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/496374/cmap_HighResolution_243475201_243734401_4FGL_J1521.8+4338_daily_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='4.39e-08', energy_flux2='9.04e-06', photon_flux_error='5.54e-08', dlogl='2.10e-03', energy_flux='9.05e-06', photon_flux2='4.53e-08', job_status='DONE', time_completed='2021-09-12 01:48:35.178645', photon_index_error2='1.02', photon_index2='3.00', ts='1.64', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='8.81e-06', EG='1.47', time_epoch_completed='1631436515.18', return_code='0', job_id='496374', GAL2='0.50', EG2='1.47', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.88e-08', ts2='1.65', photon_index='2.94' WHERE bin_id='16' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:48:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 496374: <4FGL_J1521.8+4338_daily_bin16> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin16> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 01:35:44 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:35:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 01:35:45 2021
Terminated at Sun Sep 12 01:48:35 2021
Results reported at Sun Sep 12 01:48:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin16 230.464 43.6344 243475201 243734401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1521.8+4338 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   752.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            771 sec.

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

