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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1080
RA = 230.464, Dec = 43.6344
tmin = 519264001, tmax = 519523201
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='502865', job_status='RUN', time_executed='2021-09-12 01:58:02.625750', time_epoch_executed='1631437082.63' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502865/ft1_4FGL_J1521.8+4338_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502865/ft2_4FGL_J1521.8+4338_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502865/ft1_4FGL_J1521.8+4338_daily_bin1080.fits outfile=/scratch/kocevski/502865/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1080.fits ra=230.464 dec=43.6344 rad=12.0 tmin=519264001.0 tmax=519523201.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.47
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/502865/ft2_4FGL_J1521.8+4338_daily_bin1080.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/502865/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1080.fits evtable="EVENTS" outfile="/scratch/kocevski/502865/ft1_filtered_4FGL_J1521.8+4338_daily_bin1080.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.50
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502865/ft1_filtered_4FGL_J1521.8+4338_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/502865/ft2_4FGL_J1521.8+4338_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/502865/ltcube_519264001_519523201_4FGL_J1521.8+4338_daily_bin1080.fits outfile=/scratch/kocevski/502865/expmap_519264001_519523201_4FGL_J1521.8+4338_daily_bin1080.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/502865/ltcube_519264001_519523201_4FGL_J1521.8+4338_daily_bin1080.fits
.....................!
real 192.61
user 187.20
sys 5.05

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/502865/ft1_filtered_4FGL_J1521.8+4338_daily_bin1080.fits scfile=/scratch/kocevski/502865/ft2_4FGL_J1521.8+4338_daily_bin1080.fits outfile=/scratch/kocevski/502865/cmap_519264001_519523201_4FGL_J1521.8+4338_daily_bin1080.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502865/ft1_filtered_4FGL_J1521.8+4338_daily_bin1080.fits scfile=/scratch/kocevski/502865/ft2_4FGL_J1521.8+4338_daily_bin1080.fits outfile=/scratch/kocevski/502865/cmap_HighResolution_519264001_519523201_4FGL_J1521.8+4338_daily_bin1080.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/502865/ft1_filtered_4FGL_J1521.8+4338_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/502865/ft2_4FGL_J1521.8+4338_daily_bin1080.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/502865/Model_4FGL_J1521.8+4338_daily_bin1080.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/502865/ft1_filtered_4FGL_J1521.8+4338_daily_bin1080.fits.....................!
real 46.54
user 45.12
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2438       1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.126       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.2531       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.794       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7800       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9950       1.0000         .10000E-03   10000.    
    13 'norm      '    .49625       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.202       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6929       1.0000         .10000E-03   10000.    
    19 'norm      '    .23490       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 '    21.243       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .63118       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0358       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .68694       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=   5671.390     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3483 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2600        33.108        .27422E-05    .12316E-03
   2  Prefactor     53.121        50.884       -.46929E-06   -.55880E-04
   3  Prefactor     .10000E-03    12.958       -.76261E-06** at limit **
   4  norm          7.2530        5.6020        .10301E-06   -.73271E-04
   5  Prefactor     .10000E-03    11.853        .70443E-06** at limit **
   6  Prefactor     .10000E-03    6.9536       -.42334E-06** at limit **
   7  norm          .10000E-03    5.4336        .65948E-07** at limit **
   8  Prefactor     26.792        15.220       -.69450E-07   -.14599E-04
   9  Prefactor     .10038E-03    18.405       -.49738E-05** at limit **
  10  norm          3.7794        1.6142        .53484E-07    .20074E-02
  11  Prefactor     .10000E-03    2.9302       -.11377E-06** at limit **
  12  Prefactor     9.9908        6.4736        .16546E-05    .96958E-03
  13  norm          .49621        1.4652        .85467E-06   -.52998E-04
  14  norm          .10000E-03    2.0131       -.51711E-07** at limit **
  15  Prefactor     .10000E-03    6.1772        .15879E-06** at limit **
  16  Prefactor     .10006E-03    62.727        .48881E-05** at limit **
  17  Prefactor     14.200        20.950       -.38537E-06   -.70800E-04
  18  Prefactor     3.6926        12.674        .10719E-05    .81197E-05
  19  norm          .23440        .89685        .32157E-06   -.50510E-03
  20  Prefactor     .10000E-03    8.1540        .10279E-06** at limit **
  21  norm          .10000E-03    5.2712       -.10304E-06** at limit **
  22  Prefactor     21.246        19.778        .20818E-06    .22391E-04
  23  Prefactor     .10001E-03    69.059       -.21880E-05** at limit **
  24  Prefactor     .10000E-03    1.9771        .24919E-07** at limit **
  25  Prefactor     .10000E-03    18.529        .13616E-06** at limit **
  26  Prefactor     .62834        4.4897        .21921E-05   -.41218E-03
  27  Normalizat    1.0356        .16638       -.11806E-05    .18454E-03
  28  Prefactor     .68712        .16014       -.16966E-06    .34595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.25995
  Prefactor  = 53.1213
  Prefactor  = 0.000100001
  norm       = 7.25304
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.792
  Prefactor  = 0.000100381
  norm       = 3.7794
  Prefactor  = 0.0001
  Prefactor  = 9.99083
  norm       = 0.496207
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 14.2002
  Prefactor  = 3.6926
  norm       = 0.234403
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.2465
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.628343
  Normalizat = 1.03557
  Prefactor  = 0.687117
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.390     FROM HESSE     STATUS=OK           519 CALLS     4002 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2600        33.465        .22489E-03   -1.5347    
   2  Prefactor     53.121        50.875        .55028E-04   -1.4249    
   3  Prefactor     .10000E-03    13.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.2530        5.5984        .14893E-03   -1.5169    
   5  Prefactor     .10000E-03    11.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.4774        .17140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.792        15.157        .77392E-04   -1.4672    
   9  Prefactor     .10038E-03    69.592        .49200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7794        1.5871        .59273E-04   -1.5319    
  11  Prefactor     .10000E-03    2.9383        .12578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9908        6.7160        .63373E-03   -1.5076    
  13  norm          .49621        1.4618        .14308E-03   -1.5567    
  14  norm          .10000E-03    2.0549        .20817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    65.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.200        20.568        .10629E-03   -1.4954    
  18  Prefactor     3.6926        12.336        .21016E-03   -1.5324    
  19  norm          .23440        1.3453        .13233E-02   -1.5611    
  20  Prefactor     .10000E-03    8.2048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.3095        .16887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.246        19.772        .86903E-04   -1.4786    
  23  Prefactor     .10001E-03    69.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.9866        .10340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .62834        6.9923        .27220E-02   -1.5549    
  27  Normalizat    1.0356        .19122        .20480E-03   -.91848    
  28  Prefactor     .68712        .18687        .25829E-03   -1.0403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64674e-09
Minuit parameter uncertainties:
  1  20.9045
  2  50.9168
  3  0.000279288
  4  5.59882
  5  0.000242791
  6  8.71689e-05
  7  1.10059e-05
  8  15.1595
  9  0.0103147
  10  1.58715
  11  1.21077e-05
  12  6.71654
  13  1.46186
  14  3.26686e-06
  15  5.83092e-05
  16  0.00403163
  17  20.5781
  18  12.3441
  19  1.12291
  20  2.87775e-05
  21  2.46016e-05
  22  19.7783
  23  0.00182029
  24  1.64919e-06
  25  3.16379e-05
  26  4.19245
  27  0.191346
  28  0.187038
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  6.871e-01  1.870e-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.036e+00  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/502865/likelihoodResults_519264001_519523201_4FGL_J1521.8+4338_daily_bin1080.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) = 5671.32649927
delta logL = 0.0633218234789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5671.31267876
delta logL = 0.077142334575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0464       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0731       1.0000          .0000       10.000    
     3 'Normalizat'    1.0213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69732       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5671.313     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      275 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0436        365.32        .19781E-03    .63273E-03
   2  Index         4.0758        7.8949        .11470E-01    .38555E-04
   3  Normalizat    1.0214        .16892        .20604E-03    .75528E-03
   4  Prefactor     .69724        .18369        .25660E-03   -.69649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04355
  Index      = 4.0758
  Normalizat = 1.02141
  Prefactor  = 0.697244
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.313     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0436        13.940        .79122E-05   -1.5422    
   2  Index         4.0758        3.9202        .45880E-03   -.18591    
   3  Normalizat    1.0214        .18334        .41209E-04   -.92317    
   4  Prefactor     .69724        .18804        .10264E-04   -1.0364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68707e-09
Minuit parameter uncertainties:
  1  10.6781
  2  4.53849
  3  0.183452
  4  0.188216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502865': 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) = 5671.31267812
delta logL = 0.0771429789502

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.044e+00  1.068e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  4.076e+00  4.538e+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  1.882e-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.021e+00  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/502865/cmap_HighResolution_519264001_519523201_4FGL_J1521.8+4338_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-03', job_status='DONE', photon_flux_upper_limit='9.94e-08', time_completed='2021-09-12 02:11:11.032416', job_id='502865', GAL2='0.70', fit_tolerance='1e-08', EG2='1.02', EG='1.04', time_epoch_completed='1631437871.03', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='7.71e-02', ts2='0.30', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1080' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:11:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 502865: <4FGL_J1521.8+4338_daily_bin1080> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1080 230.464 43.6344 519264001 519523201 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 :                                   776.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

