/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 1 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1521.8+4338_daily_bin20
RA = 230.464, Dec = 43.6344
tmin = 244512001, tmax = 244771201
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='496381', job_status='RUN', time_executed='2021-09-12 01:35:55.620753', time_epoch_executed='1631435755.62' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496381

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496381/ft1_4FGL_J1521.8+4338_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496381/ft2_4FGL_J1521.8+4338_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496381/ft1_4FGL_J1521.8+4338_daily_bin20.fits outfile=/scratch/kocevski/496381/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin20.fits ra=230.464 dec=43.6344 rad=12.0 tmin=244512001.0 tmax=244771201.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 1.44
user 1.27
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496381/ft2_4FGL_J1521.8+4338_daily_bin20.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/496381/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin20.fits evtable="EVENTS" outfile="/scratch/kocevski/496381/ft1_filtered_4FGL_J1521.8+4338_daily_bin20.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/496381/ft1_filtered_4FGL_J1521.8+4338_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/496381/ft2_4FGL_J1521.8+4338_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/496381/ltcube_244512001_244771201_4FGL_J1521.8+4338_daily_bin20.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/496381/ft2_4FGL_J1521.8+4338_daily_bin20.fits
.....................!
real 12.77
user 12.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496381/ft1_filtered_4FGL_J1521.8+4338_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/496381/ft2_4FGL_J1521.8+4338_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/496381/ltcube_244512001_244771201_4FGL_J1521.8+4338_daily_bin20.fits outfile=/scratch/kocevski/496381/expmap_244512001_244771201_4FGL_J1521.8+4338_daily_bin20.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/496381/ltcube_244512001_244771201_4FGL_J1521.8+4338_daily_bin20.fits
.....................!
real 191.41
user 185.95
sys 5.15

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496381/ft1_filtered_4FGL_J1521.8+4338_daily_bin20.fits scfile=/scratch/kocevski/496381/ft2_4FGL_J1521.8+4338_daily_bin20.fits outfile=/scratch/kocevski/496381/cmap_HighResolution_244512001_244771201_4FGL_J1521.8+4338_daily_bin20.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=230.464 yref=43.6344 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4554       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.005       1.0000         .10000E-03   10000.    
     7 'norm      '    6.6128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5692       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1871       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1762       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9066       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.850       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7971       1.0000         .10000E-03   10000.    
    19 'norm      '    8.5578       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2110       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11356E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.5562       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0464       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9286       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .58825       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1405       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=   4969.787     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3470 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0052        .89755E-06** at limit **
   2  Prefactor     43.446        59.917       -.50523E-05   -.41586E-04
   3  Prefactor     .10000E-03    10.640       -.71028E-06** at limit **
   4  norm          1.4554        4.3722       -.11424E-06    .99918E-04
   5  Prefactor     .10000E-03    18.695       -.27395E-07** at limit **
   6  Prefactor     18.002        16.247        .27818E-06   -.11681E-04
   7  norm          6.6129        6.5225       -.22040E-07   -.18262E-04
   8  Prefactor     5.5684        11.445       -.15590E-06    .18460E-04
   9  Prefactor     .10000E-03    8.7181        .44916E-06** at limit **
  10  norm          4.1872        2.0477       -.13966E-07   -.23338E-04
  11  Prefactor     .10000E-03    4.8076       -.23049E-07** at limit **
  12  Prefactor     2.1759        7.3470       -.20266E-06    .53109E-04
  13  norm          2.9066        1.5825       -.47160E-07    .46494E-04
  14  norm          .10000E-03    3.4734        .39094E-07** at limit **
  15  Prefactor     .10000E-03    5.6826       -.11732E-06** at limit **
  16  Prefactor     .10000E-03    27.725        .16578E-06** at limit **
  17  Prefactor     24.846        21.010       -.61618E-06    .12506E-04
  18  Prefactor     2.7973        8.2129        .21446E-05    .92653E-03
  19  norm          8.5577        2.2850       -.33189E-07    .34873E-04
  20  Prefactor     .10000E-03    7.8257       -.13546E-05** at limit **
  21  norm          .10000E-03    6.5572        .49762E-06** at limit **
  22  Prefactor     3.2107        11.132        .11875E-05    .49706E-03
  23  Prefactor     .10000E-03    82.218       -.37921E-05** at limit **
  24  Prefactor     6.5638        9.2354        .47173E-05    .37986E-03
  25  Prefactor     .99696        198.23       -.29551E-04    .16338E-03
  26  Prefactor     1.9286        2.0593        .73967E-07    .79095E-05
  27  Normalizat    .58833        .18004        .15732E-05    .12318E-03
  28  Prefactor     1.1404        .18971       -.21536E-07    .11724E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 43.4455
  Prefactor  = 0.0001
  norm       = 1.4554
  Prefactor  = 0.0001
  Prefactor  = 18.0016
  norm       = 6.61289
  Prefactor  = 5.56843
  Prefactor  = 0.0001
  norm       = 4.18715
  Prefactor  = 0.0001
  Prefactor  = 2.17588
  norm       = 2.90663
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8465
  Prefactor  = 2.79728
  norm       = 8.55769
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.21068
  Prefactor  = 0.0001
  Prefactor  = 6.5638
  Prefactor  = 0.996964
  Prefactor  = 1.92857
  Normalizat = 0.58833
  Prefactor  = 1.1404
 **********
 **   18 **HESSE 
 **********

 FCN=   4969.787     FROM HESSE     STATUS=OK           523 CALLS     3993 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.446        59.969        .60831E-04   -1.4389    
   3  Prefactor     .10000E-03    10.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4554        4.3293        .24765E-03   -1.5467    
   5  Prefactor     .10000E-03    18.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.002        16.243        .94388E-04   -1.4859    
   7  norm          6.6129        6.5255        .15605E-03   -1.5194    
   8  Prefactor     5.5684        11.434        .17024E-03   -1.5236    
   9  Prefactor     .10000E-03    8.7340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1872        2.0459        .67908E-04   -1.5299    
  11  Prefactor     .10000E-03    4.8484        .15079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1759        7.3286        .27910E-03   -1.5413    
  13  norm          2.9066        1.5801        .62693E-04   -1.5367    
  14  norm          .10000E-03    3.6173        .25615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7294        .16396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.846        21.628        .80358E-04   -1.4711    
  18  Prefactor     2.7973        11.212        .12163E-02   -1.5373    
  19  norm          8.5577        2.2858        .53369E-04   -1.5123    
  20  Prefactor     .10000E-03    7.8428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.5767        .17626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.2107        11.752        .11305E-02   -1.5350    
  23  Prefactor     .10000E-03    82.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.5638        11.142        .15673E-03   -1.5196    
  25  Prefactor     .99696        350.54        .56092E-02   -1.5508    
  26  Prefactor     1.9286        2.0670        .10190E-03   -1.5430    
  27  Normalizat    .58833        .21322        .27411E-03   -1.0848    
  28  Prefactor     1.1404        .22248        .21883E-03   -.88185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41956e-09
Minuit parameter uncertainties:
  1  2.41623e-05
  2  60.0524
  3  1.76119e-05
  4  4.33022
  5  4.50148e-06
  6  16.2465
  7  6.52617
  8  11.4387
  9  1.28992e-05
  10  2.04598
  11  5.1541e-06
  12  7.33158
  13  1.58009
  14  1.60602e-05
  15  1.68147e-05
  16  4.96936e-06
  17  21.6348
  18  11.2041
  19  2.28578
  20  2.85653e-05
  21  8.5366e-07
  22  11.7602
  23  0.000132628
  24  11.1459
  25  37.6107
  26  2.06707
  27  0.21352
  28  0.222667
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.797e+00  1.120e+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.140e+00  2.227e-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:  5.883e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/496381/likelihoodResults_244512001_244771201_4FGL_J1521.8+4338_daily_bin20.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) = 4969.52822041
delta logL = 0.258786036154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4969.49573529
delta logL = 0.29127115851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5233       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7121       1.0000          .0000       10.000    
     3 'Normalizat'    .55552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1624       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=   4969.496     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5223        57.624        .86519E-02   -.75768E-04
   2  Index         4.7139        7.3407        .20171        .16467E-04
   3  Normalizat    .55537        .44402E-01    .63631E-01   -.68053E-04
   4  Prefactor     1.1625        .48027E-01    .35588E-01   -.17831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.52228
  Index      = 4.7139
  Normalizat = 0.555371
  Prefactor  = 1.16247
 **********
 **   18 **HESSE 
 **********

 FCN=   4969.496     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      246 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5223        134.99        .11111E-03   -1.5461    
   2  Index         4.7139        5.2132        .11894E-01   -.57251E-01
   3  Normalizat    .55537        .19811        .28157E-03   -1.0991    
   4  Prefactor     1.1625        .21363        .21695E-03   -.87494    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.62345e-10
Minuit parameter uncertainties:
  1  28.7362
  2  15.5366
  3  0.198367
  4  0.213793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496381': 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): 102
logL (Free Index) = 4969.4957345
delta logL = 0.291271947851

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.522e+00  2.874e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  4.714e+00  1.554e+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:  1.162e+00  2.138e-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:  5.554e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/496381/cmap_HighResolution_244512001_244771201_4FGL_J1521.8+4338_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='9.84e-08', time_completed='2021-09-12 01:47:30.910898', job_id='496381', GAL2='1.16', fit_tolerance='1e-08', EG2='0.56', EG='0.59', time_epoch_completed='1631436450.91', return_code2='102', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.91e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='20' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:47:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 496381: <4FGL_J1521.8+4338_daily_bin20> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin20> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 01:35:44 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 01:35:46 2021
Terminated at Sun Sep 12 01:47:31 2021
Results reported at Sun Sep 12 01:47:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin20 230.464 43.6344 244512001 244771201 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 :                                   694.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

