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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1422
RA = 230.464, Dec = 43.6344
tmin = 607910401, tmax = 608169601
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='504732', job_status='RUN', time_executed='2021-09-12 02:00:59.404684', time_epoch_executed='1631437259.4' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504732/ft1_4FGL_J1521.8+4338_daily_bin1422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504732/ft2_4FGL_J1521.8+4338_daily_bin1422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504732/ft1_4FGL_J1521.8+4338_daily_bin1422.fits outfile=/scratch/kocevski/504732/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1422.fits ra=230.464 dec=43.6344 rad=12.0 tmin=607910401.0 tmax=608169601.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 3.55
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504732/ft2_4FGL_J1521.8+4338_daily_bin1422.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/504732/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1422.fits evtable="EVENTS" outfile="/scratch/kocevski/504732/ft1_filtered_4FGL_J1521.8+4338_daily_bin1422.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504732/ft1_filtered_4FGL_J1521.8+4338_daily_bin1422.fits" evtable="EVENTS" scfile=/scratch/kocevski/504732/ft2_4FGL_J1521.8+4338_daily_bin1422.fits sctable="SC_DATA" outfile=/scratch/kocevski/504732/ltcube_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.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/504732/ft2_4FGL_J1521.8+4338_daily_bin1422.fits
.....................!
real 12.42
user 12.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504732/ft1_filtered_4FGL_J1521.8+4338_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/504732/ft2_4FGL_J1521.8+4338_daily_bin1422.fits sctable="SC_DATA" expcube=/scratch/kocevski/504732/ltcube_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.fits outfile=/scratch/kocevski/504732/expmap_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.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/504732/ltcube_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.fits
.....................!
real 192.28
user 186.70
sys 5.11

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/504732/ft1_filtered_4FGL_J1521.8+4338_daily_bin1422.fits scfile=/scratch/kocevski/504732/ft2_4FGL_J1521.8+4338_daily_bin1422.fits outfile=/scratch/kocevski/504732/cmap_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504732/ft1_filtered_4FGL_J1521.8+4338_daily_bin1422.fits scfile=/scratch/kocevski/504732/ft2_4FGL_J1521.8+4338_daily_bin1422.fits outfile=/scratch/kocevski/504732/cmap_HighResolution_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.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.55
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504732/ft1_filtered_4FGL_J1521.8+4338_daily_bin1422.fits', '/scratch/kocevski/504732/ft2_4FGL_J1521.8+4338_daily_bin1422.fits', expMap='/scratch/kocevski/504732/expmap_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.fits', expCube='/scratch/kocevski/504732/ltcube_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504732/Model_4FGL_J1521.8+4338_daily_bin1422.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/504732/ft1_filtered_4FGL_J1521.8+4338_daily_bin1422.fits
Spacecraft file(s): /scratch/kocevski/504732/ft2_4FGL_J1521.8+4338_daily_bin1422.fits
Exposure map: /scratch/kocevski/504732/expmap_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.fits
Exposure cube: /scratch/kocevski/504732/ltcube_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504732/Model_4FGL_J1521.8+4338_daily_bin1422.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) = 6452.15836081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.395       1.0000         .10000E-03   10000.    
     4 'norm      '    6.9671       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10949E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4178       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.536       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9955       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .58366       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    80.047       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.777       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7208       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.990       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4967       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.480       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11074E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.455       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4345       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .84279       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0340       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.

 FCN=   6452.140     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3475 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5918       -.14065E-06** at limit **
   2  Prefactor     .10000E-03    14.123       -.24669E-07** at limit **
   3  Prefactor     10.415        26.178        .38522E-06    .12293E-04
   4  norm          6.9688        5.3395        .29244E-08   -.33187E-05
   5  Prefactor     .10000E-03    66.542        .46404E-06** at limit **
   6  Prefactor     .10000E-03    4.4502        .21401E-07** at limit **
   7  norm          4.4179        6.7265        .20946E-05   -.11433E-03
   8  Prefactor     21.528        15.635        .48470E-07   -.33766E-04
   9  Prefactor     .10000E-03    12.467        .16055E-06** at limit **
  10  norm          1.9953        1.2192        .17844E-07   -.17311E-04
  11  Prefactor     .10000E-03    3.2364       -.95459E-08** at limit **
  12  Prefactor     .10000E-03    3.0314        .54544E-07** at limit **
  13  norm          .58609        1.4076       -.17081E-06   -.70713E-04
  14  norm          .10000E-03    1.9184        .54857E-07** at limit **
  15  Prefactor     .10000E-03    3.8961        .54170E-07** at limit **
  16  Prefactor     79.987        60.859        .11175E-06   -.14936E-03
  17  Prefactor     18.776        16.930        .59295E-06   -.30932E-04
  18  Prefactor     .10000E-03    7.2924        .22297E-06** at limit **
  19  norm          3.7208        2.0430        .67569E-07   -.42888E-04
  20  Prefactor     11.957        24.675       -.28280E-05   -.13423E-03
  21  norm          1.4638        44.876        .61880E-05    .15789E-04
  22  Prefactor     15.480        19.569        .42709E-07   -.12455E-04
  23  Prefactor     .10000E-03    108.11        .30553E-06** at limit **
  24  Prefactor     .10000E-03    6.0784        .44797E-06** at limit **
  25  Prefactor     22.485        24.939       -.48599E-06   -.22430E-04
  26  Prefactor     1.4363        4.8579        .17472E-05   -.66422E-04
  27  Normalizat    .84256        .17011        .57369E-07   -.10405E-03
  28  Prefactor     1.0341        .17362       -.35648E-06   -.81115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4149
  norm       = 6.9688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.41787
  Prefactor  = 21.5276
  Prefactor  = 0.0001
  norm       = 1.99526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.586086
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.9871
  Prefactor  = 18.7756
  Prefactor  = 0.0001
  norm       = 3.72084
  Prefactor  = 11.957
  norm       = 1.46381
  Prefactor  = 15.4801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4851
  Prefactor  = 1.43632
  Normalizat = 0.842564
  Prefactor  = 1.03411
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.140     FROM HESSE     STATUS=OK           521 CALLS     3996 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.415        26.255        .12428E-03   -1.5062    
   4  norm          6.9688        5.3383        .15199E-03   -1.5180    
   5  Prefactor     .10000E-03    66.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4559        .16548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4179        6.6034        .95799E-03   -1.5288    
   8  Prefactor     21.528        15.581        .86310E-04   -1.4780    
   9  Prefactor     .10000E-03    12.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9953        1.2190        .67127E-04   -1.5425    
  11  Prefactor     .10000E-03    3.2486        .14098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.0756        .13652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .58609        1.3670        .13273E-03   -1.5555    
  14  norm          .10000E-03    1.9555        .10855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9247        .15465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     79.987        60.136        .22445E-03   -1.3917    
  17  Prefactor     18.776        16.914        .92431E-04   -1.4841    
  18  Prefactor     .10000E-03    7.3283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7208        2.0400        .81238E-04   -1.5322    
  20  Prefactor     11.957        23.152        .11569E-03   -1.5016    
  21  norm          1.4638        39.958        .35017E-03   -1.5466    
  22  Prefactor     15.480        19.566        .10180E-03   -1.4921    
  23  Prefactor     .10000E-03    108.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.1098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     22.485        24.794        .84527E-04   -1.4759    
  26  Prefactor     1.4363        4.8231        .30660E-03   -1.5468    
  27  Normalizat    .84256        .20135        .24291E-03   -.98509    
  28  Prefactor     1.0341        .20566        .23706E-03   -.91601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.447e-10
Minuit parameter uncertainties:
  1  4.4737e-05
  2  1.28491e-05
  3  26.2842
  4  5.33862
  5  2.79758e-05
  6  8.29311e-07
  7  6.60444
  8  15.5838
  9  1.92698e-05
  10  1.21902
  11  5.67292e-07
  12  1.95341e-08
  13  1.36708
  14  1.41367e-06
  15  5.68298e-06
  16  60.1821
  17  16.9186
  18  3.0491e-05
  19  2.04007
  20  23.1697
  21  15.3067
  22  19.5738
  23  3.62064e-05
  24  8.85676e-07
  25  24.8057
  26  4.8244
  27  0.20153
  28  0.205814
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  3.049e-05  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:  1.034e+00  2.058e-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:  8.426e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504732/likelihoodResults_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.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) = 6452.14038978
delta logL = -0.000650431545182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6452.13973934
delta logL = 1.66910467669e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9474       1.0000          .0000       10.000    
     3 'Normalizat'    .84256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0341       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.

 FCN=   6452.140     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9949        .90712E-02** at limit **
   2  Index         2.9590        6.4658        .22230       -.15015E-04
   3  Normalizat    .84256        .15989        .44163E-01   -.12564E-03
   4  Prefactor     1.0341        .17204        .40944E-01   -.22212E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.95904
  Normalizat = 0.842563
  Prefactor  = 1.03411
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.140     FROM HESSE     STATUS=OK            27 CALLS      224 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9590        6.4516        .88922E-02   -.42047    
   3  Normalizat    .84256        .18847        .24291E-03   -.98509    
   4  Prefactor     1.0341        .20290        .23706E-03   -.91601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64655e-10
Minuit parameter uncertainties:
  1  0.000121887
  2  4.56762
  3  0.188618
  4  0.203053
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504732': 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) = 6452.13973928
delta logL = 7.59573595133e-08

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  1.219e-04  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.959e+00  4.568e+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:  1.034e+00  2.031e-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:  8.426e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 230.464 43.634

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/504732/cmap_HighResolution_607910401_608169601_4FGL_J1521.8+4338_daily_bin1422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-12 02:15:01.769221', job_id='504732', GAL2='1.03', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631438101.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='7.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1422' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:15:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 504732: <4FGL_J1521.8+4338_daily_bin1422> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1422> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 02:00:44 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:00:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 02:00:46 2021
Terminated at Sun Sep 12 02:15:02 2021
Results reported at Sun Sep 12 02:15:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1422 230.464 43.6344 607910401 608169601 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 :                                   832.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            858 sec.

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

