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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1608
RA = 230.464, Dec = 43.6344
tmin = 656121601, tmax = 656380801
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='382928', job_status='RUN', time_executed='2021-12-08 02:09:13.189379', time_epoch_executed='1638958153.19' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382928

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382928/ft1_4FGL_J1521.8+4338_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382928/ft2_4FGL_J1521.8+4338_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382928/ft1_4FGL_J1521.8+4338_daily_bin1608.fits outfile=/scratch/kocevski/382928/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1608.fits ra=230.464 dec=43.6344 rad=12.0 tmin=656121601.0 tmax=656380801.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.50
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382928/ft1_filtered_4FGL_J1521.8+4338_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/382928/ft2_4FGL_J1521.8+4338_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/382928/ltcube_656121601_656380801_4FGL_J1521.8+4338_daily_bin1608.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/382928/ft2_4FGL_J1521.8+4338_daily_bin1608.fits
.....................!
real 13.57
user 13.16
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382928/ft1_filtered_4FGL_J1521.8+4338_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/382928/ft2_4FGL_J1521.8+4338_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/382928/ltcube_656121601_656380801_4FGL_J1521.8+4338_daily_bin1608.fits outfile=/scratch/kocevski/382928/expmap_656121601_656380801_4FGL_J1521.8+4338_daily_bin1608.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/382928/ltcube_656121601_656380801_4FGL_J1521.8+4338_daily_bin1608.fits
.....................!
real 190.88
user 185.80
sys 4.70

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/382928/ft1_filtered_4FGL_J1521.8+4338_daily_bin1608.fits scfile=/scratch/kocevski/382928/ft2_4FGL_J1521.8+4338_daily_bin1608.fits outfile=/scratch/kocevski/382928/cmap_656121601_656380801_4FGL_J1521.8+4338_daily_bin1608.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.55
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.5823       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1681       1.0000         .10000E-03   10000.    
    10 'norm      '    .81892       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .30119       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6741       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.980       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.1035       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14732E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17232E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6771       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .46514       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1302       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .69276       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=   5606.247     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     2994 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1529       -.84174E-06** at limit **
   2  Prefactor     .10000E-03    25.861        .96569E-06** at limit **
   3  Prefactor     .10000E-03    11.870       -.34678E-06** at limit **
   4  norm          5.5818        6.2031        .15356E-05   -.67178E-04
   5  Prefactor     .10000E-03    13.407        .74994E-06** at limit **
   6  Prefactor     .10000E-03    17.014       -.84019E-06** at limit **
   7  norm          .10000E-03    7.8080        .61772E-06** at limit **
   8  Prefactor     .10000E-03    6.2252       -.76806E-06** at limit **
   9  Prefactor     3.1567        15.570        .51753E-05   -.51030E-04
  10  norm          .81746        1.1488        .11716E-06    .71985E-03
  11  Prefactor     .10000E-03    3.2707       -.17499E-08** at limit **
  12  Prefactor     .10000E-03    2.1925        .42494E-07** at limit **
  13  norm          .30134        1.1412        .26186E-06   -.71743E-04
  14  norm          1.6738        2.0799        .11539E-07   -.68807E-06
  15  Prefactor     .10000E-03    4.0756       -.21255E-07** at limit **
  16  Prefactor     .10000E-03    16.688       -.52420E-06** at limit **
  17  Prefactor     .10000E-03    35.422       -.25038E-06** at limit **
  18  Prefactor     13.976        10.921        .12490E-06    .13072E-04
  19  norm          .10000E-03    .35212       -.18082E-07** at limit **
  20  Prefactor     .10000E-03    5.8540        .80834E-06** at limit **
  21  norm          7.1036        7.9383       -.90872E-08   -.22451E-04
  22  Prefactor     .10000E-03    12.859        .48735E-06** at limit **
  23  Prefactor     .10000E-03    143.68        .65942E-05** at limit **
  24  Prefactor     .10000E-03    5.4750        .11407E-05** at limit **
  25  Prefactor     4.5886        25.427       -.42671E-05    .12034E-06
  26  Prefactor     .46422        3.2172        .10215E-05    .63686E-04
  27  Normalizat    1.1308        .16893       -.12806E-05   -.23687E-04
  28  Prefactor     .69213        .16961        .97582E-06   -.22739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.58175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15666
  norm       = 0.817459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.301345
  norm       = 1.67382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9763
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.1036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.58858
  Prefactor  = 0.464219
  Normalizat = 1.13079
  Prefactor  = 0.69213
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.247     FROM HESSE     STATUS=OK           515 CALLS     3509 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.5818        6.1845        .85018E-03   -1.5235    
   5  Prefactor     .10000E-03    13.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.9593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1567        15.467        .11385E-02   -1.5353    
  10  norm          .81746        1.0184        .90922E-03   -1.5527    
  11  Prefactor     .10000E-03    3.2786        .13206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2042        .10823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .30134        1.1472        .14666E-03   -1.5598    
  14  norm          1.6738        2.0622        .11588E-03   -1.5449    
  15  Prefactor     .10000E-03    4.0864        .14737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.976        10.892        .10712E-03   -1.4960    
  19  norm          .10000E-03    .36620        .86764E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8441        .17672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.1036        7.9373        .15051E-03   -1.5175    
  22  Prefactor     .10000E-03    12.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    144.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.5984        .17170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.5886        25.367        .18608E-03   -1.5280    
  26  Prefactor     .46422        3.1850        .26046E-03   -1.5572    
  27  Normalizat    1.1308        .19607        .19717E-03   -.88769    
  28  Prefactor     .69213        .19847        .25942E-03   -1.0384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76925e-10
Minuit parameter uncertainties:
  1  9.54905e-06
  2  3.88031e-05
  3  3.51031e-06
  4  6.18518
  5  1.96817e-05
  6  1.39435e-05
  7  3.26242e-05
  8  2.7924e-06
  9  13.9803
  10  1.01842
  11  3.03432e-06
  12  3.1394e-06
  13  1.14726
  14  2.06225
  15  1.95043e-06
  16  7.97607e-06
  17  1.93168e-05
  18  10.8932
  19  4.27082e-07
  20  1.23031e-05
  21  7.93848
  22  1.56973e-05
  23  0.000138862
  24  0.000142013
  25  21.5915
  26  2.43181
  27  0.196201
  28  0.198677
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.398e+01  1.089e+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.921e-01  1.987e-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.131e+00  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.43
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 4.86e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 7.81e-06

TS (Fixed Index): 2.43
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/382928/likelihoodResults_656121601_656380801_4FGL_J1521.8+4338_daily_bin1608.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) = 5606.24465885
delta logL = 0.0026671214091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5606.24322078
delta logL = 0.00410518721947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.313       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0098       1.0000          .0000       10.000    
     3 'Normalizat'    1.1290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69374       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=   5606.243     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      230 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.312        13.383        .10978E-03    .76209E-03
   2  Index         3.0099        .86086        .87479E-02    .15924E-03
   3  Normalizat    1.1290        .18981        .19730E-03   -.27349E-03
   4  Prefactor     .69370        .19842        .25916E-03   -.20938E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.312
  Index      = 3.00989
  Normalizat = 1.12905
  Prefactor  = 0.693702
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.243     FROM HESSE     STATUS=OK            25 CALLS      255 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.312        12.836        .43912E-05   -1.4978    
   2  Index         3.0099        .82563        .34992E-03   -.40936    
   3  Normalizat    1.1290        .19000        .39460E-04   -.88825    
   4  Prefactor     .69370        .19857        .10366E-04   -1.0377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20727e-10
Minuit parameter uncertainties:
  1  12.8386
  2  0.83015
  3  0.19012
  4  0.19877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382928': 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) = 5606.24322075
delta logL = 0.00410522254879

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  6.937e-01  1.988e-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.129e+00  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 230.464 43.634
Photon Index (Free Index): 3.01 +/- 0.83
Photon Flux (Free Index): 4.96e-08 +/- 3.93e-08
Energy Flux (Free Index): 9.85e-06 +/- 7.85e-06

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/382928/cmap_HighResolution_656121601_656380801_4FGL_J1521.8+4338_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.86e-08', energy_flux2='9.85e-06', photon_flux_error='3.78e-08', dlogl='4.11e-03', energy_flux='1.00e-05', photon_flux2='4.96e-08', job_status='DONE', time_completed='2021-12-08 02:21:39.478922', photon_index_error2='0.83', photon_index2='3.01', ts='2.43', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='7.85e-06', EG='1.13', time_epoch_completed='1638958899.48', return_code='0', job_id='382928', GAL2='0.69', EG2='1.13', return_code2='0', energy_flux_error='7.81e-06', photon_flux_error2='3.93e-08', ts2='2.44', photon_index='2.94' WHERE bin_id='1608' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:21:39 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 382928: <4FGL_J1521.8+4338_daily_bin1608> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1608> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 02:05:25 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 02:06:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 02:06:44 2021
Terminated at Wed Dec  8 02:21:40 2021
Results reported at Wed Dec  8 02:21:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1608 230.464 43.6344 656121601 656380801 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 :                                   741.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            975 sec.

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

