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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin93
RA = 230.464, Dec = 43.6344
tmin = 263433601, tmax = 263692801
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='496491', job_status='RUN', time_executed='2021-09-12 01:36:05.965126', time_epoch_executed='1631435765.97' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496491

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496491/ft1_4FGL_J1521.8+4338_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496491/ft2_4FGL_J1521.8+4338_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496491/ft1_4FGL_J1521.8+4338_daily_bin93.fits outfile=/scratch/kocevski/496491/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin93.fits ra=230.464 dec=43.6344 rad=12.0 tmin=263433601.0 tmax=263692801.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.45
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496491/ft1_filtered_4FGL_J1521.8+4338_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/496491/ft2_4FGL_J1521.8+4338_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/496491/ltcube_263433601_263692801_4FGL_J1521.8+4338_daily_bin93.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/496491/ft2_4FGL_J1521.8+4338_daily_bin93.fits
.....................!
real 11.98
user 11.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496491/ft1_filtered_4FGL_J1521.8+4338_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/496491/ft2_4FGL_J1521.8+4338_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/496491/ltcube_263433601_263692801_4FGL_J1521.8+4338_daily_bin93.fits outfile=/scratch/kocevski/496491/expmap_263433601_263692801_4FGL_J1521.8+4338_daily_bin93.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/496491/ltcube_263433601_263692801_4FGL_J1521.8+4338_daily_bin93.fits
.....................!
real 191.53
user 186.07
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/496491/ft1_filtered_4FGL_J1521.8+4338_daily_bin93.fits scfile=/scratch/kocevski/496491/ft2_4FGL_J1521.8+4338_daily_bin93.fits outfile=/scratch/kocevski/496491/cmap_263433601_263692801_4FGL_J1521.8+4338_daily_bin93.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496491/ft1_filtered_4FGL_J1521.8+4338_daily_bin93.fits scfile=/scratch/kocevski/496491/ft2_4FGL_J1521.8+4338_daily_bin93.fits outfile=/scratch/kocevski/496491/cmap_HighResolution_263433601_263692801_4FGL_J1521.8+4338_daily_bin93.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.330       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.6724       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .30348E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5194       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4553       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7391       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.145       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8983       1.0000         .10000E-03   10000.    
    19 'norm      '    15.075       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.903       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .94877       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .78646       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2579       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6172.242     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3505 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    57.158         .0000    ** at limit **
   2  Prefactor     .10023E-03    19.471         .0000    ** at limit **
   3  Prefactor     .10022E-03    59.025         .0000    ** at limit **
   4  norm          15.330        7.9551         .0000        .97585E-04
   5  Prefactor     .10046E-03    42.715         .0000    ** at limit **
   6  Prefactor     .10001E-03    5.7626         .0000    ** at limit **
   7  norm          8.6720        8.9829         .0000        .58629E-04
   8  Prefactor     .10001E-03    6.2618         .0000    ** at limit **
   9  Prefactor     .10000E-03    6.4980         .0000    ** at limit **
  10  norm          .29524E-01    .68738         .0000        .42283E-03
  11  Prefactor     .10002E-03    5.0059         .0000    ** at limit **
  12  Prefactor     8.5194        6.0855         .0000        .21560E-03
  13  norm          .10000E-03    .32761         .0000    ** at limit **
  14  norm          1.4568        2.6014         .0000        .34665E-03
  15  Prefactor     .10006E-03    7.6375         .0000    ** at limit **
  16  Prefactor     5.7378        72.213         .0000        .31012E-03
  17  Prefactor     18.142        26.603         .0000       -.35390E-03
  18  Prefactor     7.8832        15.757         .0000        .40742E-03
  19  norm          15.075        2.8969         .0000       -.26512E-03
  20  Prefactor     .10001E-03    4.6938         .0000    ** at limit **
  21  norm          .10000E-03    4.1037         .0000    ** at limit **
  22  Prefactor     .10006E-03    9.1397         .0000    ** at limit **
  23  Prefactor     43.905        45.613         .0000       -.87872E-03
  24  Prefactor     .95081        7.1953         .0000        .30309E-01
  25  Prefactor     .10017E-03    15.598         .0000    ** at limit **
  26  Prefactor     .10000E-03    2.8051         .0000    ** at limit **
  27  Normalizat    .78633        .17878         .0000       -.64001E-04
  28  Prefactor     1.2580        .18929         .0000       -.45608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010003
  Prefactor  = 0.00010023
  Prefactor  = 0.000100217
  norm       = 15.3299
  Prefactor  = 0.000100463
  Prefactor  = 0.000100009
  norm       = 8.672
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0295236
  Prefactor  = 0.000100024
  Prefactor  = 8.51937
  norm       = 0.0001
  norm       = 1.45679
  Prefactor  = 0.000100057
  Prefactor  = 5.7378
  Prefactor  = 18.1417
  Prefactor  = 7.88318
  norm       = 15.0751
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.000100056
  Prefactor  = 43.9049
  Prefactor  = 0.950811
  Prefactor  = 0.000100171
  Prefactor  = 0.0001
  Normalizat = 0.78633
  Prefactor  = 1.25802
 **********
 **   18 **HESSE 
 **********

 FCN=   6172.242     FROM HESSE     STATUS=OK           513 CALLS     4018 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    58.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10023E-03    19.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10022E-03    59.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.330        7.9608        .10230E-03   -1.4925    
   5  Prefactor     .10046E-03    42.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    5.7760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.6720        8.9813        .13612E-03   -1.5119    
   8  Prefactor     .10001E-03    6.2748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .29524E-01    13.584        .12532E-02   -1.5674    
  11  Prefactor     .10002E-03    5.0930        .17161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.5194        6.0790        .13734E-03   -1.5124    
  13  norm          .10000E-03    .32916        .43895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4568        2.5449        .16002E-03   -1.5467    
  15  Prefactor     .10006E-03    7.6907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7378        72.290        .16766E-03   -1.5229    
  17  Prefactor     18.142        26.351        .94024E-04   -1.4856    
  18  Prefactor     7.8832        15.579        .14267E-03   -1.5146    
  19  norm          15.075        2.8977        .56655E-04   -1.4931    
  20  Prefactor     .10001E-03    4.6952        .16624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.1130        .15543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10006E-03    9.1486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     43.905        45.564        .60506E-04   -1.4382    
  24  Prefactor     .95081        7.2722        .20021E-02   -1.5513    
  25  Prefactor     .10017E-03    15.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.8912        .25693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .78633        .21413        .26874E-03   -1.0058    
  28  Prefactor     1.2580        .22811        .23741E-03   -.84564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98617e-08
Minuit parameter uncertainties:
  1  0.00266174
  2  0.00423956
  3  0.00721407
  4  7.96137
  5  0.00890618
  6  0.000457311
  7  8.98267
  8  0.000390235
  9  2.71849e-05
  10  1.26473
  11  0.000697733
  12  6.07942
  13  8.61372e-07
  14  2.54505
  15  0.00132044
  16  40.7932
  17  26.3678
  18  15.5874
  19  2.89771
  20  0.00038871
  21  4.77101e-05
  22  0.00143277
  23  45.5998
  24  5.2597
  25  0.00327057
  26  1.29028e-06
  27  0.21436
  28  0.22829
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  7.883e+00  1.559e+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.258e+00  2.283e-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:  7.863e-01  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/496491/likelihoodResults_263433601_263692801_4FGL_J1521.8+4338_daily_bin93.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) = 6170.69362051
delta logL = 1.54799602616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6170.64933155
delta logL = 1.59228498347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75222       1.0000         .10000E-03   10000.    
     2 'Index     '    5.9785       1.0000          .0000       10.000    
     3 'Normalizat'    .71072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3145       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=   6170.649     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      273 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75050        7.3638        .91999E-02    .65015E-03
   2  Index         5.9803        3.7298        .16635        .95532E-04
   3  Normalizat    .71073        .48096E-01    .63569E-01    .61591E-05
   4  Prefactor     1.3145        .52702E-01    .52669E-01   -.69445E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.750497
  Index      = 5.98025
  Normalizat = 0.710731
  Prefactor  = 1.31454
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.649     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      308 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75050        14.894        .41697E-03   -1.5535    
   2  Index         5.9803        7.8163        .66404E-02    .19733    
   3  Normalizat    .71073        .16920        .28123E-03   -1.0347    
   4  Prefactor     1.3145        .18055        .23286E-03   -.82876    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11124e-07
Minuit parameter uncertainties:
  1  6.68825
  2  6.82989
  3  0.169321
  4  0.18064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496491': 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) = 6170.64933123
delta logL = 1.59228530393

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  7.505e-01  6.688e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  5.980e+00  6.830e+00  0.000e+00  1.000e+01 (-1.000e+00)
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.315e+00  1.806e-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:  7.107e-01  1.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.83
Ra Dec: 230.464 43.634
Photon Index (Free Index): 5.98 +/- 6.83
Photon Flux (Free Index): 8.04e-08 +/- 6.14e-08
Energy Flux (Free Index): 1.00e-05 +/- 1.02e-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/496491/cmap_HighResolution_263433601_263692801_4FGL_J1521.8+4338_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.67e-03', comment='SUCCESS', energy_flux2='1.00e-05', dlogl='1.59e+00', photon_flux2='8.04e-08', job_status='DONE', time_completed='2021-09-12 01:49:50.348389', photon_index_error2='6.83', photon_index2='5.98', ts='0.44', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.02e-05', EG='0.79', time_epoch_completed='1631436590.35', return_code='0', job_id='496491', GAL2='1.31', EG2='0.71', return_code2='102', photon_flux_error2='6.14e-08', ts2='3.83', photon_index='2.94' WHERE bin_id='93' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:49:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 496491: <4FGL_J1521.8+4338_daily_bin93> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin93> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 01:35:52 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:35:54 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:54 2021
Terminated at Sun Sep 12 01:49:50 2021
Results reported at Sun Sep 12 01:49:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin93 230.464 43.6344 263433601 263692801 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 :                                   814.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

