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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1170
RA = 230.464, Dec = 43.6344
tmin = 542592001, tmax = 542851201
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='503046', job_status='RUN', time_executed='2021-09-12 01:57:48.786731', time_epoch_executed='1631437068.79' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503046

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503046/ft1_4FGL_J1521.8+4338_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503046/ft2_4FGL_J1521.8+4338_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503046/ft1_4FGL_J1521.8+4338_daily_bin1170.fits outfile=/scratch/kocevski/503046/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1170.fits ra=230.464 dec=43.6344 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.86
user 6.52
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503046/ft1_filtered_4FGL_J1521.8+4338_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/503046/ft2_4FGL_J1521.8+4338_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/503046/ltcube_542592001_542851201_4FGL_J1521.8+4338_daily_bin1170.fits outfile=/scratch/kocevski/503046/expmap_542592001_542851201_4FGL_J1521.8+4338_daily_bin1170.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/503046/ltcube_542592001_542851201_4FGL_J1521.8+4338_daily_bin1170.fits
.....................!
real 191.14
user 185.27
sys 5.49

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/503046/ft1_filtered_4FGL_J1521.8+4338_daily_bin1170.fits scfile=/scratch/kocevski/503046/ft2_4FGL_J1521.8+4338_daily_bin1170.fits outfile=/scratch/kocevski/503046/cmap_542592001_542851201_4FGL_J1521.8+4338_daily_bin1170.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503046/ft1_filtered_4FGL_J1521.8+4338_daily_bin1170.fits scfile=/scratch/kocevski/503046/ft2_4FGL_J1521.8+4338_daily_bin1170.fits outfile=/scratch/kocevski/503046/cmap_HighResolution_542592001_542851201_4FGL_J1521.8+4338_daily_bin1170.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.811       1.0000         .10000E-03   10000.    
     2 'Prefactor '    89.867       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.826       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9413       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.731       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11238E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.0021       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .54918       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1919       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3681       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0424       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.112       1.0000         .10000E-03   10000.    
    19 'norm      '    6.4056       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10209E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    64.914       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .67279E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8461       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91897       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1433       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=   3326.169     FROM MIGRAD    STATUS=CONVERGED   1272 CALLS     4654 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.818        53.282        .47050E-04   -.45088E-04
   2  Prefactor     89.859        129.70        .42386E-04   -.31301E-04
   3  Prefactor     19.830        32.939        .89952E-04    .55041E-04
   4  norm          2.9425        8.0774        .23682E-03    .28563E-05
   5  Prefactor     23.711        63.700        .82226E-04    .39902E-04
   6  Prefactor     .10000E-03    28.334        .18142E-02** at limit **
   7  norm          8.0014        12.519        .14174E-03    .51454E-04
   8  Prefactor     .10000E-03    22.061        .18142E-02** at limit **
   9  Prefactor     .10000E-03    36.250        .18142E-02** at limit **
  10  norm          .54995        1.8368        .14008E-03   -.96720E-03
  11  Prefactor     4.1905        10.865        .19684E-03    .35555E-03
  12  Prefactor     .10000E-03    6.9370        .14729E-02** at limit **
  13  norm          .10000E-03    1.4028        .13067E-03** at limit **
  14  norm          3.3657        5.1832        .14309E-03    .22802E-03
  15  Prefactor     3.0648        34.625        .11631E-02    .21249E-03
  16  Prefactor     .10000E-03    42.304        .18142E-02** at limit **
  17  Prefactor     .10000E-03    29.164        .18142E-02** at limit **
  18  Prefactor     23.073        32.243        .83319E-04    .38264E-03
  19  norm          6.4059        2.6787        .58921E-04    .21809E-03
  20  Prefactor     .10000E-03    9.4639        .17326E-02** at limit **
  21  norm          .10000E-03    6.2673        .14097E-02** at limit **
  22  Prefactor     .10007E-03    70.365        .11196    ** at limit **
  23  Prefactor     64.897        90.061        .49810E-04    .33917E-04
  24  Prefactor     .10000E-03    5.8683        .13595E-02** at limit **
  25  Prefactor     .10046E-03    56.914        .93074E-01** at limit **
  26  Prefactor     1.8448        5.8847        .23586E-03    .35814E-04
  27  Normalizat    .91889        .31785        .25557E-03    .33586E-03
  28  Prefactor     1.1432        .31403        .24747E-03    .37139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.8183
  Prefactor  = 89.8585
  Prefactor  = 19.8302
  norm       = 2.94253
  Prefactor  = 23.7108
  Prefactor  = 0.0001
  norm       = 8.00145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.549949
  Prefactor  = 4.19053
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.36568
  Prefactor  = 3.06481
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.073
  norm       = 6.40585
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100071
  Prefactor  = 64.897
  Prefactor  = 0.0001
  Prefactor  = 0.000100461
  Prefactor  = 1.84481
  Normalizat = 0.918886
  Prefactor  = 1.14324
 **********
 **   18 **HESSE 
 **********

 FCN=   3326.169     FROM HESSE     STATUS=OK           511 CALLS     5165 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.818        53.282        .94100E-05   -1.3999    
   2  Prefactor     89.859        129.68        .84773E-05   -1.3809    
   3  Prefactor     19.830        32.935        .35981E-05   -1.4817    
   4  norm          2.9425        8.0766        .94729E-05   -1.5365    
   5  Prefactor     23.711        63.697        .16445E-04   -1.4734    
   6  Prefactor     .10000E-03    28.336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.0014        12.519        .56695E-05   -1.5142    
   8  Prefactor     .10000E-03    22.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .54995        1.8367        .56032E-05   -1.5560    
  11  Prefactor     4.1905        10.863        .78735E-05   -1.5299    
  12  Prefactor     .10000E-03    6.9395        .29459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4028        .26134E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3657        5.1662        .57237E-05   -1.5341    
  15  Prefactor     3.0648        33.336        .46524E-04   -1.5358    
  16  Prefactor     .10000E-03    42.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.073        31.739        .16664E-04   -1.4747    
  19  norm          6.4059        2.6787        .11784E-04   -1.5202    
  20  Prefactor     .10000E-03    9.4641        .34651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.2674        .28195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10007E-03    69.631        .11262       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     64.897        90.060        .99620E-05   -1.4095    
  24  Prefactor     .10000E-03    5.8686        .27191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10046E-03    50.666        .99713E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.8448        5.8839        .94343E-05   -1.5436    
  27  Normalizat    .91889        .31803        .51114E-04   -.95800    
  28  Prefactor     1.1432        .31433        .49494E-04   -.88096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51546e-09
Minuit parameter uncertainties:
  1  53.3169
  2  130.096
  3  32.9651
  4  8.07954
  5  63.8803
  6  2.39461e-05
  7  12.5235
  8  2.50395e-05
  9  1.27153e-05
  10  1.83685
  11  10.8685
  12  8.37176e-06
  13  5.18905e-06
  14  5.16691
  15  20.2297
  16  8.77752e-05
  17  0.00024507
  18  31.762
  19  2.6787
  20  5.20626e-06
  21  4.49337e-06
  22  0.00445844
  23  90.2501
  24  1.12348e-05
  25  0.00967312
  26  5.88573
  27  0.31868
  28  0.314846
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.307e+01  3.176e+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:  1.143e+00  3.148e-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:  9.189e-01  3.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 8.02e-08 +/- 1.10e-07
Energy Flux (Fixed Index): 1.66e-05 +/- 2.28e-05

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

Saving results to:
/scratch/kocevski/503046/likelihoodResults_542592001_542851201_4FGL_J1521.8+4338_daily_bin1170.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) = 3326.01298691
delta logL = 0.156378964302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3326.00526142
delta logL = 0.164104454109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.671       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7137       1.0000          .0000       10.000    
     3 'Normalizat'    .88774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1717       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=   3326.005     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      296 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.667        33.348        .11253E-03   -.24297E-03
   2  Index         3.7156        2.2659        .68016E-02   -.76505E-04
   3  Normalizat    .88722        .29971        .25958E-03   -.77673E-04
   4  Prefactor     1.1720        .31574        .24490E-03   -.78162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6673
  Index      = 3.71558
  Normalizat = 0.887216
  Prefactor  = 1.17198
 **********
 **   18 **HESSE 
 **********

 FCN=   3326.005     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.667        23.970        .45013E-05   -1.4996    
   2  Index         3.7156        1.6579        .27206E-03   -.25980    
   3  Normalizat    .88722        .29924        .10383E-04   -.96911    
   4  Prefactor     1.1720        .31414        .48979E-04   -.87198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69441e-10
Minuit parameter uncertainties:
  1  23.9881
  2  1.69225
  3  0.2998
  4  0.314645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503046': 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) = 3326.00525702
delta logL = 0.164108853828

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.267e+01  2.399e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  3.716e+00  1.692e+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.172e+00  3.146e-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.872e-01  2.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 230.464 43.634
Photon Index (Free Index): 3.72 +/- 1.69
Photon Flux (Free Index): 9.62e-08 +/- 7.89e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.31e-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/503046/cmap_HighResolution_542592001_542851201_4FGL_J1521.8+4338_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', comment='SUCCESS', photon_flux='8.02e-08', energy_flux2='1.52e-05', photon_flux_error='1.10e-07', dlogl='1.64e-01', energy_flux='1.66e-05', photon_flux2='9.62e-08', job_status='DONE', time_completed='2021-09-12 02:09:25.619518', photon_index_error2='1.69', photon_index2='3.72', ts='1.59', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='2.23e-07', energy_flux_error2='1.31e-05', EG='0.92', time_epoch_completed='1631437765.62', return_code='0', job_id='503046', GAL2='1.17', EG2='0.89', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='7.89e-08', ts2='1.99', photon_index='2.94' WHERE bin_id='1170' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:09:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 503046: <4FGL_J1521.8+4338_daily_bin1170> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1170> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Sep 12 01:55:47 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:55:48 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:55:48 2021
Terminated at Sun Sep 12 02:09:29 2021
Results reported at Sun Sep 12 02:09:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1170 230.464 43.6344 542592001 542851201 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 :                                   680.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

