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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1540
RA = 230.464, Dec = 43.6344
tmin = 638496001, tmax = 638755201
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='504898', job_status='RUN', time_executed='2021-09-12 02:01:10.928982', time_epoch_executed='1631437270.93' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504898/ft1_4FGL_J1521.8+4338_daily_bin1540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504898/ft2_4FGL_J1521.8+4338_daily_bin1540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504898/ft1_4FGL_J1521.8+4338_daily_bin1540.fits outfile=/scratch/kocevski/504898/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1540.fits ra=230.464 dec=43.6344 rad=12.0 tmin=638496001.0 tmax=638755201.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 4.44
user 4.18
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504898/ft2_4FGL_J1521.8+4338_daily_bin1540.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/504898/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1540.fits evtable="EVENTS" outfile="/scratch/kocevski/504898/ft1_filtered_4FGL_J1521.8+4338_daily_bin1540.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504898/ft1_filtered_4FGL_J1521.8+4338_daily_bin1540.fits evtable="EVENTS" scfile=/scratch/kocevski/504898/ft2_4FGL_J1521.8+4338_daily_bin1540.fits sctable="SC_DATA" expcube=/scratch/kocevski/504898/ltcube_638496001_638755201_4FGL_J1521.8+4338_daily_bin1540.fits outfile=/scratch/kocevski/504898/expmap_638496001_638755201_4FGL_J1521.8+4338_daily_bin1540.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/504898/ltcube_638496001_638755201_4FGL_J1521.8+4338_daily_bin1540.fits
.....................!
real 189.65
user 184.45
sys 4.87

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504898/ft1_filtered_4FGL_J1521.8+4338_daily_bin1540.fits scfile=/scratch/kocevski/504898/ft2_4FGL_J1521.8+4338_daily_bin1540.fits outfile=/scratch/kocevski/504898/cmap_HighResolution_638496001_638755201_4FGL_J1521.8+4338_daily_bin1540.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .91994E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2790       1.0000         .10000E-03   10000.    
     4 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10909E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .90267       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7981       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0483       1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3641       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3562       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15177       1.0000         .10000E-03   10000.    
    21 'norm      '    4.1883       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10960E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16737E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.072       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .61879       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2281       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=   4846.162     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3533 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6143        .41799E-05** at limit **
   2  Prefactor     .10050E-03    48.054       -.11770E-05** at limit **
   3  Prefactor     1.2823        72.982        .18437E-04   -.14402E-03
   4  norm          .10000E-03    3.5194       -.22417E-06** at limit **
   5  Prefactor     .10000E-03    11.001       -.31846E-06** at limit **
   6  Prefactor     .10000E-03    5.0134        .74028E-07** at limit **
   7  norm          .10000E-03    2.3845       -.10140E-06** at limit **
   8  Prefactor     .10000E-03    8.4951        .24910E-05** at limit **
   9  Prefactor     .10000E-03    7.3931       -.19698E-05** at limit **
  10  norm          .90287        1.3398       -.10646E-06   -.46505E-03
  11  Prefactor     9.7919        7.2115        .25844E-07   -.77361E-04
  12  Prefactor     6.0531        7.4947       -.46611E-06   -.17255E-03
  13  norm          .10000E-03    .71797       -.44517E-07** at limit **
  14  norm          .10000E-03    1.3628        .62541E-07** at limit **
  15  Prefactor     .10000E-03    6.0594       -.88969E-07** at limit **
  16  Prefactor     .10000E-03    33.745       -.13389E-05** at limit **
  17  Prefactor     .10000E-03    8.0314       -.43217E-05** at limit **
  18  Prefactor     5.3512        9.5413       -.13085E-05   -.94173E-04
  19  norm          3.3558        1.8406       -.31856E-07   -.22171E-03
  20  Prefactor     .10005E-03    33.985        .15211E-05** at limit **
  21  norm          4.2121        15.250       -.14367E-05   -.26873E-03
  22  Prefactor     .10000E-03    11.632        .55352E-06** at limit **
  23  Prefactor     .10000E-03    221.63        .37600E-05** at limit **
  24  Prefactor     .10000E-03    3.5608        .36566E-06** at limit **
  25  Prefactor     15.068        17.892       -.66262E-05   -.33304E-04
  26  Prefactor     .10000E-03    1.1989        .17501E-07** at limit **
  27  Normalizat    .61884        .18345       -.29747E-06   -.13172E-03
  28  Prefactor     1.2281        .19724        .60708E-06   -.16506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100504
  Prefactor  = 1.2823
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.902865
  Prefactor  = 9.79187
  Prefactor  = 6.05314
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.35116
  norm       = 3.35584
  Prefactor  = 0.000100047
  norm       = 4.2121
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.0683
  Prefactor  = 0.0001
  Normalizat = 0.618837
  Prefactor  = 1.22812
 **********
 **   18 **HESSE 
 **********

 FCN=   4846.162     FROM HESSE     STATUS=OK           533 CALLS     4066 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10050E-03    50.554        .14128       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2823        67.313        .39261E-03   -1.5481    
   4  norm          .10000E-03    3.5659        .12752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0262        .15219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3848        .10499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .90287        1.1865        .94423E-03   -1.5518    
  11  Prefactor     9.7919        7.0889        .12802E-03   -1.5082    
  12  Prefactor     6.0531        7.4843        .16326E-03   -1.5216    
  13  norm          .10000E-03    1.2320        .11173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3685        .79312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1246        .16687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.0286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.3512        9.5272        .17352E-03   -1.5245    
  19  norm          3.3558        1.8394        .67172E-04   -1.5342    
  20  Prefactor     .10005E-03    50.285        .89894E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.2121        15.785        .19693E-03   -1.5297    
  22  Prefactor     .10000E-03    11.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    223.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.5849        .12816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.068        18.040        .10317E-03   -1.4931    
  26  Prefactor     .10000E-03    1.2016        .74438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .61884        .21217        .25755E-03   -1.0719    
  28  Prefactor     1.2281        .23037        .20894E-03   -.85470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17503e-09
Minuit parameter uncertainties:
  1  8.50788e-06
  2  0.0101082
  3  18.6026
  4  6.60428e-06
  5  1.08886e-05
  6  1.51951e-06
  7  3.7892e-07
  8  7.17746e-06
  9  7.73284e-06
  10  1.18652
  11  7.08948
  12  7.48543
  13  3.70454e-06
  14  3.09917e-06
  15  2.90792e-05
  16  1.29191e-06
  17  1.38258e-05
  18  9.52991
  19  1.83942
  20  0.00308982
  21  15.8002
  22  4.11287e-06
  23  0.000726443
  24  8.25694e-05
  25  18.0465
  26  1.74673e-06
  27  0.212447
  28  0.230564
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  5.351e+00  9.530e+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

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.228e+00  2.306e-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:  6.188e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/504898/likelihoodResults_638496001_638755201_4FGL_J1521.8+4338_daily_bin1540.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) = 4846.09018623
delta logL = 0.0721054655123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4846.08772369
delta logL = 0.0745680058844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3439       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4632       1.0000          .0000       10.000    
     3 'Normalizat'    .62466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2216       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=   4846.088     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      285 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3446        11.717        .14800E-03   -.34889E-03
   2  Index         2.4631        1.0748        .14052E-01   -.58877E-04
   3  Normalizat    .62463        .20676        .25639E-03    .80789E-04
   4  Prefactor     1.2217        .22972        .20937E-03    .12783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.34461
  Index      = 2.46314
  Normalizat = 0.624626
  Prefactor  = 1.2217
 **********
 **   18 **HESSE 
 **********

 FCN=   4846.088     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3446        11.641        .59201E-05   -1.5166    
   2  Index         2.4631        1.0683        .56210E-03   -.53213    
   3  Normalizat    .62463        .20697        .10256E-04   -1.0695    
   4  Prefactor     1.2217        .22992        .41874E-04   -.85666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36425e-10
Minuit parameter uncertainties:
  1  11.6445
  2  1.07953
  3  0.207229
  4  0.230109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504898': 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) = 4846.08772365
delta logL = 0.074568040307

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  7.345e+00  1.164e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.463e+00  1.080e+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.222e+00  2.301e-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:  6.246e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/504898/cmap_HighResolution_638496001_638755201_4FGL_J1521.8+4338_daily_bin1540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-03', job_status='DONE', photon_flux_upper_limit='9.94e-08', time_completed='2021-09-12 02:13:42.495951', job_id='504898', GAL2='1.22', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1631438022.5', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='7.46e-02', ts2='0.54', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1540' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:13:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 504898: <4FGL_J1521.8+4338_daily_bin1540> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1540> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 02:00:56 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:00:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 02:00:57 2021
Terminated at Sun Sep 12 02:13:43 2021
Results reported at Sun Sep 12 02:13:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1540 230.464 43.6344 638496001 638755201 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 :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

