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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1118
RA = 230.464, Dec = 43.6344
tmin = 529113601, tmax = 529372801
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='502922', job_status='RUN', time_executed='2021-09-12 01:58:18.372415', time_epoch_executed='1631437098.37' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502922

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502922/ft1_4FGL_J1521.8+4338_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502922/ft2_4FGL_J1521.8+4338_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502922/ft1_4FGL_J1521.8+4338_daily_bin1118.fits outfile=/scratch/kocevski/502922/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1118.fits ra=230.464 dec=43.6344 rad=12.0 tmin=529113601.0 tmax=529372801.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.87
user 3.64
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502922/ft1_filtered_4FGL_J1521.8+4338_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/502922/ft2_4FGL_J1521.8+4338_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/502922/ltcube_529113601_529372801_4FGL_J1521.8+4338_daily_bin1118.fits outfile=/scratch/kocevski/502922/expmap_529113601_529372801_4FGL_J1521.8+4338_daily_bin1118.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/502922/ltcube_529113601_529372801_4FGL_J1521.8+4338_daily_bin1118.fits
.....................!
real 190.21
user 185.16
sys 4.71

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/502922/ft1_filtered_4FGL_J1521.8+4338_daily_bin1118.fits scfile=/scratch/kocevski/502922/ft2_4FGL_J1521.8+4338_daily_bin1118.fits outfile=/scratch/kocevski/502922/cmap_529113601_529372801_4FGL_J1521.8+4338_daily_bin1118.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/502922/ft1_filtered_4FGL_J1521.8+4338_daily_bin1118.fits scfile=/scratch/kocevski/502922/ft2_4FGL_J1521.8+4338_daily_bin1118.fits outfile=/scratch/kocevski/502922/cmap_HighResolution_529113601_529372801_4FGL_J1521.8+4338_daily_bin1118.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/502922/ft1_filtered_4FGL_J1521.8+4338_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/502922/ft2_4FGL_J1521.8+4338_daily_bin1118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/502922/Model_4FGL_J1521.8+4338_daily_bin1118.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/502922/ft1_filtered_4FGL_J1521.8+4338_daily_bin1118.fits.....................!
real 44.10
user 42.70
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.343       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.812       1.0000         .10000E-03   10000.    
     4 'norm      '    9.3288       1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.698       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8794       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.157       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9559       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2091       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21292E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.171       1.0000         .10000E-03   10000.    
    19 'norm      '    5.6512       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7315       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.9796       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .93179       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84022       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=   5355.789     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3460 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.348        27.637       -.11152E-06    .34134E-04
   2  Prefactor     .10000E-03    18.916        .24138E-06** at limit **
   3  Prefactor     33.821        29.034       -.39226E-06    .14340E-04
   4  norm          9.3310        7.0875       -.44747E-06   -.32520E-04
   5  Prefactor     41.680        46.150        .13721E-05   -.38808E-04
   6  Prefactor     .10000E-03    5.1476       -.17488E-07** at limit **
   7  norm          1.8795        8.6957        .87680E-05    .11098E-04
   8  Prefactor     .10000E-03    5.3773       -.28407E-06** at limit **
   9  Prefactor     17.147        16.546        .74012E-06    .25098E-03
  10  norm          2.9563        1.6998        .53662E-08    .25987E-03
  11  Prefactor     .10000E-03    5.0011        .17321E-06** at limit **
  12  Prefactor     .10000E-03    7.5127       -.78931E-07** at limit **
  13  norm          2.2101        1.6030       -.14995E-06   -.92894E-03
  14  norm          .10000E-03    1.4624        .46170E-07** at limit **
  15  Prefactor     .10002E-03    7.3168       -.23081E-05** at limit **
  16  Prefactor     .10000E-03    17.341        .20477E-06** at limit **
  17  Prefactor     .10000E-03    6.8447        .24778E-06** at limit **
  18  Prefactor     19.171        13.222       -.42740E-06   -.23045E-03
  19  norm          5.6517        2.1327        .17201E-07   -.55145E-04
  20  Prefactor     .10000E-03    6.9023        .21002E-06** at limit **
  21  norm          .10000E-03    4.3571       -.18974E-07** at limit **
  22  Prefactor     6.7312        13.337        .63199E-07   -.84021E-05
  23  Prefactor     .10000E-03    24.662       -.63401E-06** at limit **
  24  Prefactor     .10000E-03    2.3594        .12281E-06** at limit **
  25  Prefactor     6.9847        16.058        .95490E-07    .75896E-05
  26  Prefactor     .10000E-03    1.0677        .11945E-07** at limit **
  27  Normalizat    .93135        .18071       -.43989E-06   -.16099E-04
  28  Prefactor     .84065        .18169        .88775E-07    .80751E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.3476
  Prefactor  = 0.0001
  Prefactor  = 33.8206
  norm       = 9.33102
  Prefactor  = 41.6795
  Prefactor  = 0.0001
  norm       = 1.87946
  Prefactor  = 0.0001
  Prefactor  = 17.147
  norm       = 2.95632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21014
  norm       = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1707
  norm       = 5.65166
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.73119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.98471
  Prefactor  = 0.0001
  Normalizat = 0.93135
  Prefactor  = 0.840648
 **********
 **   18 **HESSE 
 **********

 FCN=   5355.789     FROM HESSE     STATUS=OK           521 CALLS     3981 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.348        27.675        .59542E-04   -1.4360    
   2  Prefactor     .10000E-03    18.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.821        29.117        .68914E-04   -1.4544    
   4  norm          9.3310        7.0947        .13121E-03   -1.5097    
   5  Prefactor     41.680        46.145        .62079E-04   -1.4416    
   6  Prefactor     .10000E-03    5.1528        .16216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8795        8.8616        .15184E-02   -1.5434    
   8  Prefactor     .10000E-03    5.3955        .16569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.147        16.598        .96694E-04   -1.4880    
  10  norm          2.9563        1.6980        .68581E-04   -1.5364    
  11  Prefactor     .10000E-03    5.0328        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2101        1.5988        .75402E-04   -1.5411    
  14  norm          .10000E-03    1.4682        .86289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    37.106        .33392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.8533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.171        12.374        .91476E-04   -1.4832    
  19  norm          5.6517        2.1357        .63038E-04   -1.5232    
  20  Prefactor     .10000E-03    6.9076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3610        .14919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.7312        13.329        .15465E-03   -1.5189    
  23  Prefactor     .10000E-03    24.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3641        .10964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.9847        16.055        .15185E-03   -1.5179    
  26  Prefactor     .10000E-03    1.0698        .73846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .93135        .21812        .22685E-03   -.95367    
  28  Prefactor     .84065        .21822        .25035E-03   -.98247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17859e-10
Minuit parameter uncertainties:
  1  27.6825
  2  1.26334e-05
  3  29.1297
  4  7.09533
  5  46.1841
  6  1.44991e-07
  7  8.16389
  8  1.73883e-05
  9  16.6029
  10  1.69807
  11  1.61333e-05
  12  6.60287e-05
  13  1.5988
  14  5.73866e-06
  15  0.00181242
  16  9.00033e-06
  17  1.14531e-06
  18  12.3758
  19  2.1357
  20  7.7022e-06
  21  1.24351e-06
  22  13.3351
  23  6.65998e-05
  24  1.26055e-05
  25  16.0645
  26  7.19031e-07
  27  0.218332
  28  0.218445
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.917e+01  1.238e+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:  8.406e-01  2.184e-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.314e-01  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.54
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 8.88e-06

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) = 5355.36821557
delta logL = 0.420736216844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5355.28092855
delta logL = 0.508023240801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.748       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0978       1.0000          .0000       10.000    
     3 'Normalizat'    .97439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80119       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=   5355.281     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.783        17.170        .19737E-02    .74652E-05
   2  Index         2.0975        .51280        .16306       -.75891E-04
   3  Normalizat    .97450        .17227        .45845E-01   -.76114E-05
   4  Prefactor     .80111        .18157        .43733E-01    .14624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7831
  Index      = 2.09747
  Normalizat = 0.974496
  Prefactor  = 0.801106
 **********
 **   18 **HESSE 
 **********

 FCN=   5355.281     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.783        16.617        .78947E-04   -1.4692    
   2  Index         2.0975        .60454        .84709E-02   -.61935    
   3  Normalizat    .97450        .20671        .22219E-03   -.93890    
   4  Prefactor     .80111        .21665        .25560E-03   -.99688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20412e-12
Minuit parameter uncertainties:
  1  16.6196
  2  0.606782
  3  0.20688
  4  0.21688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502922': 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) = 5355.28092539
delta logL = 0.508026396233

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.578e+01  1.662e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.097e+00  6.068e-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:  8.011e-01  2.169e-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.745e-01  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.51
Ra Dec: 230.464 43.634
Photon Index (Free Index): 2.10 +/- 0.61
Photon Flux (Free Index): 4.75e-08 +/- 3.66e-08
Energy Flux (Free Index): 2.62e-05 +/- 2.82e-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/502922/cmap_HighResolution_529113601_529372801_4FGL_J1521.8+4338_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='2.62e-05', photon_flux_error='4.30e-08', dlogl='5.08e-01', energy_flux='1.38e-05', photon_flux2='4.75e-08', job_status='DONE', time_completed='2021-09-12 02:09:42.708589', photon_index_error2='0.61', photon_index2='2.10', ts='4.54', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.82e-05', EG='0.93', time_epoch_completed='1631437782.71', return_code='0', job_id='502922', GAL2='0.80', EG2='0.97', return_code2='0', energy_flux_error='8.88e-06', photon_flux_error2='3.66e-08', ts2='5.51', photon_index='2.94' WHERE bin_id='1118' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:09:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 502922: <4FGL_J1521.8+4338_daily_bin1118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1118 230.464 43.6344 529113601 529372801 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 :                                   672.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

