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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin517
RA = 230.464, Dec = 43.6344
tmin = 373334401, tmax = 373593601
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='499330', job_status='RUN', time_executed='2021-09-12 01:45:51.389380', time_epoch_executed='1631436351.39' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499330/ft1_4FGL_J1521.8+4338_daily_bin517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499330/ft2_4FGL_J1521.8+4338_daily_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499330/ft1_4FGL_J1521.8+4338_daily_bin517.fits outfile=/scratch/kocevski/499330/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin517.fits ra=230.464 dec=43.6344 rad=12.0 tmin=373334401.0 tmax=373593601.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.53
user 4.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/499330/ft1_filtered_4FGL_J1521.8+4338_daily_bin517.fits" evtable="EVENTS" scfile=/scratch/kocevski/499330/ft2_4FGL_J1521.8+4338_daily_bin517.fits sctable="SC_DATA" outfile=/scratch/kocevski/499330/ltcube_373334401_373593601_4FGL_J1521.8+4338_daily_bin517.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/499330/ft2_4FGL_J1521.8+4338_daily_bin517.fits
.....................!
real 11.85
user 11.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499330/ft1_filtered_4FGL_J1521.8+4338_daily_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/499330/ft2_4FGL_J1521.8+4338_daily_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/499330/ltcube_373334401_373593601_4FGL_J1521.8+4338_daily_bin517.fits outfile=/scratch/kocevski/499330/expmap_373334401_373593601_4FGL_J1521.8+4338_daily_bin517.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/499330/ltcube_373334401_373593601_4FGL_J1521.8+4338_daily_bin517.fits
.....................!
real 191.60
user 186.91
sys 4.10

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/499330/ft1_filtered_4FGL_J1521.8+4338_daily_bin517.fits scfile=/scratch/kocevski/499330/ft2_4FGL_J1521.8+4338_daily_bin517.fits outfile=/scratch/kocevski/499330/cmap_373334401_373593601_4FGL_J1521.8+4338_daily_bin517.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499330/ft1_filtered_4FGL_J1521.8+4338_daily_bin517.fits scfile=/scratch/kocevski/499330/ft2_4FGL_J1521.8+4338_daily_bin517.fits outfile=/scratch/kocevski/499330/cmap_HighResolution_373334401_373593601_4FGL_J1521.8+4338_daily_bin517.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.476       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17325E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.733       1.0000         .10000E-03   10000.    
     4 'norm      '    .23967E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.124       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.538       1.0000         .10000E-03   10000.    
     7 'norm      '    7.7640       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1951       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8416       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1619       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6044       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22285E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.088       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.362       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.2795       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.0967       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.490       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .44646E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    36.648       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.1313       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87803       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=   6354.757     FROM MIGRAD    STATUS=CONVERGED   1287 CALLS     4204 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.496        20.569        .10181E-03   -.15633E-05
   2  Prefactor     .10010E-03    54.626        .16786    ** at limit **
   3  Prefactor     39.746        25.972        .63589E-04    .14263E-03
   4  norm          .10004E-03    31.280        .34125E-02** at limit **
   5  Prefactor     52.129        41.981        .55552E-04    .90906E-04
   6  Prefactor     21.545        16.718        .86307E-04    .20193E-03
   7  norm          7.7627        7.5670        .14391E-03   -.22435E-04
   8  Prefactor     9.1999        15.488        .13217E-03    .13229E-03
   9  Prefactor     2.8461        8.8795        .24122E-03    .63673E-04
  10  norm          1.1604        1.1929        .42723E-04    .94998E-04
  11  Prefactor     3.6017        5.1589        .20854E-03    .40385E-03
  12  Prefactor     .10000E-03    23.623        .31430E-02** at limit **
  13  norm          .10000E-03    .84917        .11247E-02** at limit **
  14  norm          .10000E-03    1.4151        .91938E-03** at limit **
  15  Prefactor     .10000E-03    3.3990        .14305E-02** at limit **
  16  Prefactor     47.125        56.108        .58433E-04    .86113E-04
  17  Prefactor     11.377        15.163        .11885E-03    .83029E-04
  18  Prefactor     .10000E-03    8.3683        .18142E-02** at limit **
  19  norm          6.2796        1.9964        .61126E-04    .27136E-03
  20  Prefactor     .10000E-03    11.991        .18142E-02** at limit **
  21  norm          8.0941        9.3319        .14090E-03    .26384E-04
  22  Prefactor     .10000E-03    5.5468        .18142E-02** at limit **
  23  Prefactor     29.721        62.012        .73778E-04    .26658E-04
  24  Prefactor     .10001E-03    8.1372        .52846E-01** at limit **
  25  Prefactor     36.644        29.566        .66203E-04    .28163E-04
  26  Prefactor     5.1316        5.0648        .16993E-03   -.76939E-05
  27  Normalizat    1.0018        .20534        .23091E-03    .63160E-03
  28  Prefactor     .87829        .20563        .25899E-03    .32589E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.496
  Prefactor  = 0.000100102
  Prefactor  = 39.7464
  norm       = 0.000100041
  Prefactor  = 52.1293
  Prefactor  = 21.5446
  norm       = 7.76275
  Prefactor  = 9.19986
  Prefactor  = 2.84607
  norm       = 1.16042
  Prefactor  = 3.60171
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.1247
  Prefactor  = 11.3774
  Prefactor  = 0.0001
  norm       = 6.27957
  Prefactor  = 0.0001
  norm       = 8.09413
  Prefactor  = 0.0001
  Prefactor  = 29.7206
  Prefactor  = 0.000100008
  Prefactor  = 36.6437
  Prefactor  = 5.13164
  Normalizat = 1.0018
  Prefactor  = 0.878293
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.757     FROM HESSE     STATUS=OK           511 CALLS     4715 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.496        20.569        .40724E-05   -1.4920    
   2  Prefactor     .10010E-03    56.030        .16484       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.746        25.972        .12718E-04   -1.4446    
   4  norm          .10004E-03    31.955        .68250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.129        41.972        .11110E-04   -1.4263    
   6  Prefactor     21.545        16.722        .17261E-04   -1.4779    
   7  norm          7.7627        7.5666        .57564E-05   -1.5151    
   8  Prefactor     9.1999        15.485        .52867E-05   -1.5101    
   9  Prefactor     2.8461        8.8764        .96487E-05   -1.5371    
  10  norm          1.1604        1.1929        .17089E-05   -1.5493    
  11  Prefactor     3.6017        5.1581        .83417E-05   -1.5328    
  12  Prefactor     .10000E-03    24.158        .62860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .84989        .22493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4153        .18388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3995        .28611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     47.125        56.107        .11687E-04   -1.4334    
  17  Prefactor     11.377        15.162        .47540E-05   -1.5033    
  18  Prefactor     .10000E-03    8.3711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.2796        1.9964        .24450E-05   -1.5207    
  20  Prefactor     .10000E-03    11.992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.0941        9.3313        .56361E-05   -1.5139    
  22  Prefactor     .10000E-03    5.5469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.721        62.024        .29511E-05   -1.4617    
  24  Prefactor     .10001E-03    7.9453        .53689E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     36.644        29.522        .26481E-05   -1.4497    
  26  Prefactor     5.1316        5.0644        .67971E-05   -1.5255    
  27  Normalizat    1.0018        .20544        .46183E-04   -.92970    
  28  Prefactor     .87829        .20580        .51799E-04   -.96904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29291e-09
Minuit parameter uncertainties:
  1  20.5785
  2  0.00478438
  3  25.9797
  4  0.00227801
  5  41.9958
  6  16.7255
  7  7.56749
  8  15.4915
  9  8.88048
  10  1.19288
  11  5.15878
  12  0.000645269
  13  2.217e-05
  14  2.99348e-06
  15  9.03658e-06
  16  56.1703
  17  15.1673
  18  3.50446e-05
  19  1.99644
  20  6.27376e-06
  21  9.33297
  22  1.72479e-07
  23  62.1595
  24  0.00051535
  25  29.5341
  26  5.06482
  27  0.205601
  28  0.205985
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  3.504e-05  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:  8.783e-01  2.060e-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.002e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/499330/likelihoodResults_373334401_373593601_4FGL_J1521.8+4338_daily_bin517.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): 102
logL (Free Index) = 6354.75721886
delta logL = -0.000569627039113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6354.75664927
delta logL = -3.75039235223e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9557       1.0000          .0000       10.000    
     3 'Normalizat'    1.0018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87828       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=   6354.757     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.350        .90712E-02** at limit **
   2  Index         2.9761        6.4846        .22211       -.22863E-04
   3  Normalizat    1.0018        .16214        .46190E-01    .16036E-03
   4  Prefactor     .87829        .17220        .44728E-01    .10459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.97605
  Normalizat = 1.00179
  Prefactor  = 0.878295
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.757     FROM HESSE     STATUS=OK            27 CALLS      222 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9761        6.4591        .88843E-02   -.41675    
   3  Normalizat    1.0018        .19050        .23091E-03   -.92970    
   4  Prefactor     .87829        .20239        .25899E-03   -.96904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98642e-10
Minuit parameter uncertainties:
  1  0.000239101
  2  4.58061
  3  0.190632
  4  0.202563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499330': 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) = 6354.75664903
delta logL = 2.00600879907e-07

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  2.391e-04  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.976e+00  4.581e+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:  8.783e-01  2.026e-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.002e+00  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/499330/cmap_HighResolution_373334401_373593601_4FGL_J1521.8+4338_daily_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-12 02:01:03.935463', job_id='499330', GAL2='0.88', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631437263.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='517' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:01:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 499330: <4FGL_J1521.8+4338_daily_bin517> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin517 230.464 43.6344 373334401 373593601 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 :                                   902.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

