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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1131
RA = 230.464, Dec = 43.6344
tmin = 532483201, tmax = 532742401
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='502941', job_status='RUN', time_executed='2021-09-12 01:58:20.839036', time_epoch_executed='1631437100.84' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502941/ft1_4FGL_J1521.8+4338_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502941/ft2_4FGL_J1521.8+4338_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502941/ft1_4FGL_J1521.8+4338_daily_bin1131.fits outfile=/scratch/kocevski/502941/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1131.fits ra=230.464 dec=43.6344 rad=12.0 tmin=532483201.0 tmax=532742401.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.51
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/502941/ft2_4FGL_J1521.8+4338_daily_bin1131.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/502941/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1131.fits evtable="EVENTS" outfile="/scratch/kocevski/502941/ft1_filtered_4FGL_J1521.8+4338_daily_bin1131.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502941/ft1_filtered_4FGL_J1521.8+4338_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/502941/ft2_4FGL_J1521.8+4338_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/502941/ltcube_532483201_532742401_4FGL_J1521.8+4338_daily_bin1131.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/502941/ft2_4FGL_J1521.8+4338_daily_bin1131.fits
.....................!
real 12.00
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502941/ft1_filtered_4FGL_J1521.8+4338_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/502941/ft2_4FGL_J1521.8+4338_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/502941/ltcube_532483201_532742401_4FGL_J1521.8+4338_daily_bin1131.fits outfile=/scratch/kocevski/502941/expmap_532483201_532742401_4FGL_J1521.8+4338_daily_bin1131.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/502941/ltcube_532483201_532742401_4FGL_J1521.8+4338_daily_bin1131.fits
.....................!
real 190.72
user 185.49
sys 4.92

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/502941/ft1_filtered_4FGL_J1521.8+4338_daily_bin1131.fits scfile=/scratch/kocevski/502941/ft2_4FGL_J1521.8+4338_daily_bin1131.fits outfile=/scratch/kocevski/502941/cmap_532483201_532742401_4FGL_J1521.8+4338_daily_bin1131.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502941/ft1_filtered_4FGL_J1521.8+4338_daily_bin1131.fits scfile=/scratch/kocevski/502941/ft2_4FGL_J1521.8+4338_daily_bin1131.fits outfile=/scratch/kocevski/502941/cmap_HighResolution_532483201_532742401_4FGL_J1521.8+4338_daily_bin1131.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/502941/ft1_filtered_4FGL_J1521.8+4338_daily_bin1131.fits', '/scratch/kocevski/502941/ft2_4FGL_J1521.8+4338_daily_bin1131.fits', expMap='/scratch/kocevski/502941/expmap_532483201_532742401_4FGL_J1521.8+4338_daily_bin1131.fits', expCube='/scratch/kocevski/502941/ltcube_532483201_532742401_4FGL_J1521.8+4338_daily_bin1131.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/502941/Model_4FGL_J1521.8+4338_daily_bin1131.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/502941/ft1_filtered_4FGL_J1521.8+4338_daily_bin1131.fits
Spacecraft file(s): /scratch/kocevski/502941/ft2_4FGL_J1521.8+4338_daily_bin1131.fits
Exposure map: /scratch/kocevski/502941/expmap_532483201_532742401_4FGL_J1521.8+4338_daily_bin1131.fits
Exposure cube: /scratch/kocevski/502941/ltcube_532483201_532742401_4FGL_J1521.8+4338_daily_bin1131.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/502941/Model_4FGL_J1521.8+4338_daily_bin1131.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6328.16842349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.856       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9234       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.081       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.580       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4063       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.149       1.0000         .10000E-03   10000.    
    10 'norm      '    6.4749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1551       1.0000         .10000E-03   10000.    
    13 'norm      '    7.3659       1.0000         .10000E-03   10000.    
    14 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2832       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.119       1.0000         .10000E-03   10000.    
    19 'norm      '    2.7026       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3662       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9312       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12207E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.6520       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0810       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .69114       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=   6328.139     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3533 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.855        17.556       -.61584E-07    .39862E-05
   2  Prefactor     .10000E-03    29.520       -.16643E-06** at limit **
   3  Prefactor     .10000E-03    8.5422       -.21721E-07** at limit **
   4  norm          3.9227        5.2815        .18833E-06    .17121E-04
   5  Prefactor     35.081        32.782       -.47907E-07    .20299E-05
   6  Prefactor     .10000E-03    10.982       -.93197E-07** at limit **
   7  norm          10.580        8.6972       -.61747E-07    .79120E-05
   8  Prefactor     1.4057        21.349        .21749E-05    .60167E-05
   9  Prefactor     16.149        17.947       -.14123E-06    .92514E-05
  10  norm          6.4750        2.1227       -.10068E-07    .28472E-04
  11  Prefactor     .10000E-03    3.7032       -.20265E-07** at limit **
  12  Prefactor     8.1551        5.3813        .13807E-07    .13249E-04
  13  norm          7.3659        2.1802        .21482E-07    .34278E-04
  14  norm          .10000E-03    1.4481       -.28086E-06** at limit **
  15  Prefactor     .10000E-03    4.0818       -.31989E-07** at limit **
  16  Prefactor     .10000E-03    33.150        .10793E-06** at limit **
  17  Prefactor     4.2512        33.761       -.57634E-05    .59267E-05
  18  Prefactor     28.130        15.468        .16243E-05    .18252E-04
  19  norm          2.7025        1.7221       -.91919E-08   -.27668E-05
  20  Prefactor     .10000E-03    17.368       -.18525E-06** at limit **
  21  norm          1.3660        25.221        .42843E-05   -.45427E-05
  22  Prefactor     1.9315        34.557        .12140E-06   -.37821E-05
  23  Prefactor     .10000E-03    18.164       -.33028E-07** at limit **
  24  Prefactor     .10000E-03    2.7840       -.13971E-06** at limit **
  25  Prefactor     .10000E-03    10.686       -.82566E-07** at limit **
  26  Prefactor     1.6513        4.3406       -.54625E-07    .54036E-05
  27  Normalizat    1.0811        .17073        .36128E-06    .39490E-04
  28  Prefactor     .69106        .16893       -.19966E-06    .67921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.9227
  Prefactor  = 35.0806
  Prefactor  = 0.0001
  norm       = 10.5802
  Prefactor  = 1.40572
  Prefactor  = 16.1491
  norm       = 6.47498
  Prefactor  = 0.0001
  Prefactor  = 8.15513
  norm       = 7.36593
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.25119
  Prefactor  = 28.1301
  norm       = 2.70249
  Prefactor  = 0.0001
  norm       = 1.36598
  Prefactor  = 1.93149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.65127
  Normalizat = 1.08111
  Prefactor  = 0.691061
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.139     FROM HESSE     STATUS=OK           525 CALLS     4058 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.855        17.581        .11634E-03   -1.5019    
   2  Prefactor     .10000E-03    29.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9227        5.2664        .10147E-02   -1.5312    
   5  Prefactor     35.081        32.778        .67660E-04   -1.4523    
   6  Prefactor     .10000E-03    11.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.580        8.6912        .61589E-03   -1.5057    
   8  Prefactor     1.4057        21.408        .18278E-02   -1.5471    
   9  Prefactor     16.149        17.954        .99667E-04   -1.4904    
  10  norm          6.4750        2.1223        .61593E-04   -1.5199    
  11  Prefactor     .10000E-03    3.7141        .14936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1551        5.3759        .70196E-03   -1.5137    
  13  norm          7.3659        2.1837        .60359E-04   -1.5165    
  14  norm          .10000E-03    1.4668        .93634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0911        .15671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.2512        33.721        .19467E-03   -1.5296    
  18  Prefactor     28.130        15.567        .75552E-04   -1.4647    
  19  norm          2.7025        1.7164        .80233E-04   -1.5379    
  20  Prefactor     .10000E-03    17.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3660        25.380        .18665E-02   -1.5474    
  22  Prefactor     1.9315        34.742        .29887E-03   -1.5430    
  23  Prefactor     .10000E-03    18.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.9853        .25681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.6513        4.3379        .25648E-03   -1.5451    
  27  Normalizat    1.0811        .20114        .22138E-03   -.90361    
  28  Prefactor     .69106        .19854        .28026E-03   -1.0388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84099e-10
Minuit parameter uncertainties:
  1  17.5885
  2  2.34545e-05
  3  2.73958e-06
  4  5.26699
  5  32.7945
  6  4.76497e-06
  7  8.6922
  8  10.9758
  9  17.9602
  10  2.12235
  11  3.71581e-06
  12  5.37624
  13  2.18375
  14  3.95867e-06
  15  1.61893e-05
  16  6.96117e-06
  17  23.9644
  18  15.569
  19  1.71645
  20  4.45359e-05
  21  11.7813
  22  16.3939
  23  1.44567e-06
  24  4.8081e-05
  25  4.60503e-06
  26  4.33872
  27  0.201286
  28  0.198745
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.813e+01  1.557e+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:  6.911e-01  1.987e-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.081e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.22
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 9.78e-08 +/- 5.41e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.12e-05

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) = 6328.01116625
delta logL = 0.127541887568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6328.00832206
delta logL = 0.130386079951

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.065       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2255       1.0000          .0000       10.000    
     3 'Normalizat'    1.0700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70071       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=   6328.008     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      259 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.099        191.59        .20851E-02   -.29073E-03
   2  Index         3.2271        6.5767        .15047       -.83070E-05
   3  Normalizat    1.0695        .78092E-01    .39381E-01   -.74387E-04
   4  Prefactor     .70086        .84682E-01    .62953E-01   -.39638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0985
  Index      = 3.22715
  Normalizat = 1.06948
  Prefactor  = 0.700859
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.008     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.099        16.024        .83405E-04   -1.4746    
   2  Index         3.2271        .62686        .61197E-02   -.36245    
   3  Normalizat    1.0695        .19190        .22239E-03   -.90738    
   4  Prefactor     .70086        .19560        .27848E-03   -1.0349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36704e-11
Minuit parameter uncertainties:
  1  16.0271
  2  0.628751
  3  0.192025
  4  0.195791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502941': 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) = 6328.00829792
delta logL = 0.130410215543

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.310e+01  1.603e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  3.227e+00  6.288e-01  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:  7.009e-01  1.958e-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.069e+00  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.47
Ra Dec: 230.464 43.634
Photon Index (Free Index): 3.23 +/- 0.63
Photon Flux (Free Index): 1.06e-07 +/- 4.95e-08
Energy Flux (Free Index): 1.92e-05 +/- 9.14e-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/502941/cmap_HighResolution_532483201_532742401_4FGL_J1521.8+4338_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.78e-08', energy_flux2='1.92e-05', photon_flux_error='5.41e-08', dlogl='1.30e-01', energy_flux='2.02e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-12 02:10:53.575796', photon_index_error2='0.63', photon_index2='3.23', ts='7.22', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='9.14e-06', EG='1.08', time_epoch_completed='1631437853.58', return_code='0', job_id='502941', GAL2='0.70', EG2='1.07', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.95e-08', ts2='7.47', photon_index='2.94' WHERE bin_id='1131' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:10:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 502941: <4FGL_J1521.8+4338_daily_bin1131> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1131 230.464 43.6344 532483201 532742401 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 :                                   740.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

