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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin563
RA = 230.464, Dec = 43.6344
tmin = 385257601, tmax = 385516801
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='499399', job_status='RUN', time_executed='2021-09-12 01:45:53.161608', time_epoch_executed='1631436353.16' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499399/ft1_4FGL_J1521.8+4338_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499399/ft2_4FGL_J1521.8+4338_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499399/ft1_4FGL_J1521.8+4338_daily_bin563.fits outfile=/scratch/kocevski/499399/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin563.fits ra=230.464 dec=43.6344 rad=12.0 tmin=385257601.0 tmax=385516801.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.54
user 3.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499399/ft1_filtered_4FGL_J1521.8+4338_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/499399/ft2_4FGL_J1521.8+4338_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/499399/ltcube_385257601_385516801_4FGL_J1521.8+4338_daily_bin563.fits outfile=/scratch/kocevski/499399/expmap_385257601_385516801_4FGL_J1521.8+4338_daily_bin563.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/499399/ltcube_385257601_385516801_4FGL_J1521.8+4338_daily_bin563.fits
.....................!
real 190.40
user 185.24
sys 4.84

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/499399/ft1_filtered_4FGL_J1521.8+4338_daily_bin563.fits scfile=/scratch/kocevski/499399/ft2_4FGL_J1521.8+4338_daily_bin563.fits outfile=/scratch/kocevski/499399/cmap_385257601_385516801_4FGL_J1521.8+4338_daily_bin563.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/499399/ft1_filtered_4FGL_J1521.8+4338_daily_bin563.fits scfile=/scratch/kocevski/499399/ft2_4FGL_J1521.8+4338_daily_bin563.fits outfile=/scratch/kocevski/499399/cmap_HighResolution_385257601_385516801_4FGL_J1521.8+4338_daily_bin563.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32408E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    70.203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .17511E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.215       1.0000         .10000E-03   10000.    
    10 'norm      '    .77498       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0378       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6949       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3564       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0738       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4206       1.0000         .10000E-03   10000.    
    19 'norm      '    2.2370       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    22.256       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.448       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.0832       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91402       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1316       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=   6233.052     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3551 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.777       -.18496E-08** at limit **
   2  Prefactor     .10000E-03    46.993       -.28773E-06** at limit **
   3  Prefactor     .10115E-03    12.632       -.11236E-05** at limit **
   4  norm          .10000E-03    10.311       -.38425E-06** at limit **
   5  Prefactor     70.204        51.043       -.20871E-07    .91867E-04
   6  Prefactor     .10000E-03    5.6278       -.32465E-07** at limit **
   7  norm          .10001E-03    15.058       -.90837E-05** at limit **
   8  Prefactor     .10000E-03    15.257       -.13259E-05** at limit **
   9  Prefactor     15.215        14.589        .70753E-07    .10913E-03
  10  norm          .77495        .73330       -.45206E-07   -.23974E-03
  11  Prefactor     2.0386        4.4408        .14820E-05    .99598E-03
  12  Prefactor     5.6948        5.7867       -.20001E-07    .34157E-03
  13  norm          .10000E-03    .70731        .17359E-06** at limit **
  14  norm          .10000E-03    1.4319       -.26817E-06** at limit **
  15  Prefactor     8.3572        13.306        .14790E-05    .60859E-03
  16  Prefactor     9.1059        110.43       -.25918E-05    .28563E-04
  17  Prefactor     .10000E-03    21.009        .78358E-07** at limit **
  18  Prefactor     4.4180        28.792       -.17733E-05    .15510E-03
  19  norm          2.2370        1.3983        .20072E-07    .23737E-03
  20  Prefactor     .10000E-03    8.0426        .39979E-07** at limit **
  21  norm          22.257        13.259        .21724E-07    .58776E-04
  22  Prefactor     .10000E-03    5.1175        .19746E-07** at limit **
  23  Prefactor     13.445        53.007        .13214E-06    .11998E-04
  24  Prefactor     .10000E-03    3.7273        .82127E-06** at limit **
  25  Prefactor     6.0805        20.675       -.44997E-06    .41267E-04
  26  Prefactor     .10000E-03    2.7416       -.56212E-07** at limit **
  27  Normalizat    .91402        .17681       -.16446E-06    .48615E-03
  28  Prefactor     1.1316        .17900        .55700E-06    .54604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101145
  norm       = 0.0001
  Prefactor  = 70.2038
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 15.2148
  norm       = 0.774954
  Prefactor  = 2.03859
  Prefactor  = 5.6948
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.35716
  Prefactor  = 9.1059
  Prefactor  = 0.000100001
  Prefactor  = 4.41802
  norm       = 2.23697
  Prefactor  = 0.0001
  norm       = 22.2566
  Prefactor  = 0.0001
  Prefactor  = 13.4448
  Prefactor  = 0.000100001
  Prefactor  = 6.08052
  Prefactor  = 0.0001
  Normalizat = 0.91402
  Prefactor  = 1.13161
 **********
 **   18 **HESSE 
 **********

 FCN=   6233.052     FROM HESSE     STATUS=OK           525 CALLS     4076 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10115E-03    20.510        .99730E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     70.204        51.011        .47910E-04   -1.4030    
   6  Prefactor     .10000E-03    5.6384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    15.669        .33289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.215        14.560        .10268E-03   -1.4928    
  10  norm          .77495        .76708        .63792E-03   -1.5532    
  11  Prefactor     2.0386        4.5631        .24625E-03   -1.5422    
  12  Prefactor     5.6948        5.7661        .16832E-03   -1.5231    
  13  norm          .10000E-03    .72995        .12927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4471        .92334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.3572        12.821        .13868E-03   -1.5130    
  16  Prefactor     9.1059        109.60        .13305E-03   -1.5104    
  17  Prefactor     .10000E-03    21.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4180        26.192        .19154E-03   -1.5288    
  19  norm          2.2370        1.4000        .71567E-04   -1.5409    
  20  Prefactor     .10000E-03    8.0489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          22.257        13.256        .84904E-04   -1.4764    
  22  Prefactor     .10000E-03    5.1187        .17443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.445        52.977        .10923E-03   -1.4974    
  24  Prefactor     .10000E-03    3.7803        .14903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.0805        20.577        .16278E-03   -1.5215    
  26  Prefactor     .10000E-03    2.8252        .25525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .91402        .21233        .24770E-03   -.95969    
  28  Prefactor     1.1316        .21619        .24004E-03   -.88463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33406e-09
Minuit parameter uncertainties:
  1  0.000172182
  2  3.66613e-05
  3  0.00969675
  4  3.42797e-05
  5  51.0425
  6  4.30968e-06
  7  0.000684154
  8  0.00019022
  9  14.5636
  10  0.767094
  11  4.56386
  12  5.76669
  13  8.54939e-06
  14  2.26454e-05
  15  12.8253
  16  63.3271
  17  0.00021281
  18  21.5283
  19  1.39998
  20  7.30445e-06
  21  13.2576
  22  3.38843e-06
  23  53.1636
  24  9.56792e-05
  25  20.6006
  26  6.14274e-06
  27  0.212523
  28  0.216359
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.132e+00  2.164e-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:  9.140e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/499399/likelihoodResults_385257601_385516801_4FGL_J1521.8+4338_daily_bin563.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) = 6232.6016005
delta logL = 0.450118519956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6232.58333523
delta logL = 0.468383788046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6721       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9935       1.0000          .0000       10.000    
     3 'Normalizat'    .86331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1676       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=   6232.583     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      267 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6745        38.413        .81494E-02    .74448E-03
   2  Index         4.9890        7.3290        .20136        .93610E-04
   3  Normalizat    .86328        .43720E-01    .44431E-01    .18642E-04
   4  Prefactor     1.1675        .46776E-01    .53551E-01    .72254E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.67453
  Index      = 4.98898
  Normalizat = 0.863282
  Prefactor  = 1.16749
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.583     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6745        89.635        .10181E-03   -1.5449    
   2  Index         4.9890        6.8736        .98695E-02   -.22043E-02
   3  Normalizat    .86328        .19357        .25403E-03   -.97763    
   4  Prefactor     1.1675        .19921        .23677E-03   -.87338    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.52643e-07
Minuit parameter uncertainties:
  1  24.5409
  2  11.4443
  3  0.193726
  4  0.199342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499399': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6232.58332425
delta logL = 0.46839477593

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.675e+00  2.454e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  4.989e+00  1.144e+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:  1.167e+00  1.993e-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:  8.633e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 230.464 43.634
Photon Index (Free Index): 4.99 +/- 11.44
Photon Flux (Free Index): 5.39e-08 +/- 8.12e-08
Energy Flux (Free Index): 7.17e-06 +/- 1.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/499399/cmap_HighResolution_385257601_385516801_4FGL_J1521.8+4338_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.51e-03', comment='SUCCESS', energy_flux2='7.17e-06', dlogl='4.68e-01', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-09-12 01:59:44.751997', photon_index_error2='11.44', photon_index2='4.99', ts='0.11', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.64e-05', EG='0.91', time_epoch_completed='1631437184.75', return_code='0', job_id='499399', GAL2='1.17', EG2='0.86', return_code2='102', photon_flux_error2='8.12e-08', ts2='1.12', photon_index='2.94' WHERE bin_id='563' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:59:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 499399: <4FGL_J1521.8+4338_daily_bin563> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin563 230.464 43.6344 385257601 385516801 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 :                                   825.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            849 sec.

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

