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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin723
RA = 230.464, Dec = 43.6344
tmin = 426729601, tmax = 426988801
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='500815', job_status='RUN', time_executed='2021-09-12 01:50:52.044512', time_epoch_executed='1631436652.04' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500815

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500815/ft1_4FGL_J1521.8+4338_daily_bin723.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500815/ft2_4FGL_J1521.8+4338_daily_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500815/ft1_4FGL_J1521.8+4338_daily_bin723.fits outfile=/scratch/kocevski/500815/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin723.fits ra=230.464 dec=43.6344 rad=12.0 tmin=426729601.0 tmax=426988801.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 5.55
user 5.28
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500815/ft1_filtered_4FGL_J1521.8+4338_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/500815/ft2_4FGL_J1521.8+4338_daily_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/500815/ltcube_426729601_426988801_4FGL_J1521.8+4338_daily_bin723.fits outfile=/scratch/kocevski/500815/expmap_426729601_426988801_4FGL_J1521.8+4338_daily_bin723.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/500815/ltcube_426729601_426988801_4FGL_J1521.8+4338_daily_bin723.fits
.....................!
real 190.96
user 185.51
sys 5.02

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/500815/ft1_filtered_4FGL_J1521.8+4338_daily_bin723.fits scfile=/scratch/kocevski/500815/ft2_4FGL_J1521.8+4338_daily_bin723.fits outfile=/scratch/kocevski/500815/cmap_426729601_426988801_4FGL_J1521.8+4338_daily_bin723.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500815/ft1_filtered_4FGL_J1521.8+4338_daily_bin723.fits scfile=/scratch/kocevski/500815/ft2_4FGL_J1521.8+4338_daily_bin723.fits outfile=/scratch/kocevski/500815/cmap_HighResolution_426729601_426988801_4FGL_J1521.8+4338_daily_bin723.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.719       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.2374       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6479       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.910       1.0000         .10000E-03   10000.    
    10 'norm      '    .87639       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3390       1.0000         .10000E-03   10000.    
    14 'norm      '    .10376E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9259       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.757       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.795       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1193       1.0000         .10000E-03   10000.    
    19 'norm      '    6.9797       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2551       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.202       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2873       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .70445       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=   6247.633     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3495 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.936        .27652E-05** at limit **
   2  Prefactor     50.714        60.573       -.67593E-06    .22028E-05
   3  Prefactor     .10000E-03    11.134        .15870E-07** at limit **
   4  norm          4.2373        7.7427        .32993E-06    .43161E-04
   5  Prefactor     .10000E-03    21.728        .30404E-05** at limit **
   6  Prefactor     2.6473        14.014        .62202E-05   -.20127E-04
   7  norm          .10000E-03    8.3784       -.79295E-06** at limit **
   8  Prefactor     .10000E-03    13.648       -.19303E-05** at limit **
   9  Prefactor     12.888        20.979        .31251E-06   -.14974E-04
  10  norm          .87967        1.8369       -.28767E-06   -.64039E-03
  11  Prefactor     .10000E-03    6.1052        .17911E-06** at limit **
  12  Prefactor     .10000E-03    9.6457        .38171E-06** at limit **
  13  norm          2.3388        1.6566        .40203E-07    .89244E-04
  14  norm          .10000E-03    2.8835       -.50050E-07** at limit **
  15  Prefactor     2.9249        12.990       -.20019E-05   -.24468E-04
  16  Prefactor     17.759        45.008       -.29402E-06    .92349E-06
  17  Prefactor     23.789        30.756       -.24567E-06    .38970E-05
  18  Prefactor     4.1179        13.724        .41514E-05   -.35078E-04
  19  norm          6.9799        2.1649        .26783E-07    .51794E-04
  20  Prefactor     .10000E-03    5.2025       -.19881E-07** at limit **
  21  norm          .10000E-03    3.9150        .26916E-07** at limit **
  22  Prefactor     7.2556        13.669        .57631E-07   -.23686E-05
  23  Prefactor     .10000E-03    35.505       -.42629E-05** at limit **
  24  Prefactor     13.202        6.7230        .87625E-08   -.40820E-04
  25  Prefactor     .10000E-03    10.112        .89340E-06** at limit **
  26  Prefactor     .10000E-03    1.7314        .71851E-07** at limit **
  27  Normalizat    1.2872        .18531        .47322E-09    .14186E-04
  28  Prefactor     .70451        .18068       -.58523E-06   -.17860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 50.7139
  Prefactor  = 0.0001
  norm       = 4.23731
  Prefactor  = 0.0001
  Prefactor  = 2.6473
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8885
  norm       = 0.879665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33883
  norm       = 0.0001
  Prefactor  = 2.9249
  Prefactor  = 17.7591
  Prefactor  = 23.7893
  Prefactor  = 4.1179
  norm       = 6.97991
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.25561
  Prefactor  = 0.0001
  Prefactor  = 13.2023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28722
  Prefactor  = 0.704507
 **********
 **   18 **HESSE 
 **********

 FCN=   6247.633     FROM HESSE     STATUS=OK           523 CALLS     4018 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     50.714        60.497        .56312E-04   -1.4282    
   3  Prefactor     .10000E-03    11.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2373        7.7404        .19575E-03   -1.5296    
   5  Prefactor     .10000E-03    21.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6473        13.748        .12527E-02   -1.5383    
   7  norm          .10000E-03    8.5500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.888        20.296        .11148E-03   -1.4990    
  10  norm          .87967        1.6174        .14060E-02   -1.5520    
  11  Prefactor     .10000E-03    6.1529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.7796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3388        1.6501        .81103E-04   -1.5402    
  14  norm          .10000E-03    2.9220        .26041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9249        12.091        .23749E-03   -1.5366    
  16  Prefactor     17.759        44.974        .95046E-04   -1.4865    
  17  Prefactor     23.789        30.410        .82117E-04   -1.4732    
  18  Prefactor     4.1179        13.557        .99308E-03   -1.5302    
  19  norm          6.9799        2.1659        .62019E-04   -1.5180    
  20  Prefactor     .10000E-03    5.2061        .17608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.9216        .15274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.2556        13.669        .14891E-03   -1.5169    
  23  Prefactor     .10000E-03    35.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.202        6.7215        .11024E-03   -1.4981    
  25  Prefactor     .10000E-03    10.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.0495        .20215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2872        .22670        .22691E-03   -.83949    
  28  Prefactor     .70451        .21881        .29533E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.01571e-11
Minuit parameter uncertainties:
  1  5.37404e-05
  2  60.57
  3  1.54014e-06
  4  7.74221
  5  3.87538e-05
  6  12.0698
  7  2.14783e-05
  8  1.1383e-06
  9  20.3068
  10  1.61753
  11  3.19159e-06
  12  6.54064e-05
  13  1.65011
  14  4.56913e-06
  15  11.8976
  16  45.06
  17  30.4293
  18  13.5674
  19  2.16596
  20  2.3909e-07
  21  4.40882e-07
  22  13.6745
  23  6.02618e-05
  24  6.72191
  25  8.73755e-06
  26  3.29726e-06
  27  0.22687
  28  0.219074
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  4.118e+00  1.357e+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:  7.045e-01  2.191e-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.287e+00  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/500815/likelihoodResults_426729601_426988801_4FGL_J1521.8+4338_daily_bin723.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) = 6247.53949884
delta logL = 0.0939098461977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6247.53378761
delta logL = 0.0996210696121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0492       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3244       1.0000          .0000       10.000    
     3 'Normalizat'    1.2930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69785       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=   6247.534     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      259 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0244        19.660        .40812E-02    .10607E-03
   2  Index         2.3249        1.4195        .28239       -.21215E-04
   3  Normalizat    1.2939        .18008        .51205E-01    .10780E-03
   4  Prefactor     .69716        .18095        .67046E-01   -.42137E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.02438
  Index      = 2.32495
  Normalizat = 1.29387
  Prefactor  = 0.697161
 **********
 **   18 **HESSE 
 **********

 FCN=   6247.534     FROM HESSE     STATUS=OK            31 CALLS      290 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0244        11.701        .16325E-03   -1.5217    
   2  Index         2.3249        1.1238        .15591E-01   -.56452    
   3  Normalizat    1.2939        .21816        .22639E-03   -.83750    
   4  Prefactor     .69716        .21706        .29666E-03   -1.0364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51911e-10
Minuit parameter uncertainties:
  1  11.7057
  2  1.13745
  3  0.218317
  4  0.217323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500815': 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) = 6247.53377768
delta logL = 0.0996309993325

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  6.024e+00  1.171e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.325e+00  1.137e+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:  6.972e-01  2.173e-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.294e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/500815/cmap_HighResolution_426729601_426988801_4FGL_J1521.8+4338_daily_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-12 02:04:39.529410', job_id='500815', GAL2='0.70', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631437479.53', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='9.96e-02', ts2='0.38', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='723' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:04:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 500815: <4FGL_J1521.8+4338_daily_bin723> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin723> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep 12 01:50:35 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:50:37 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:50:37 2021
Terminated at Sun Sep 12 02:04:40 2021
Results reported at Sun Sep 12 02:04:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin723 230.464 43.6344 426729601 426988801 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 :                                   824.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            845 sec.

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

