/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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1521.8+4338_daily_bin132
RA = 230.464, Dec = 43.6344
tmin = 273542401, tmax = 273801601
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='497594', job_status='RUN', time_executed='2021-09-12 01:40:39.362115', time_epoch_executed='1631436039.36' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497594

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497594/ft1_4FGL_J1521.8+4338_daily_bin132.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497594/ft2_4FGL_J1521.8+4338_daily_bin132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497594/ft1_4FGL_J1521.8+4338_daily_bin132.fits outfile=/scratch/kocevski/497594/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin132.fits ra=230.464 dec=43.6344 rad=12.0 tmin=273542401.0 tmax=273801601.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.55
user 3.28
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/497594/ft2_4FGL_J1521.8+4338_daily_bin132.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/497594/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin132.fits evtable="EVENTS" outfile="/scratch/kocevski/497594/ft1_filtered_4FGL_J1521.8+4338_daily_bin132.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/497594/ft1_filtered_4FGL_J1521.8+4338_daily_bin132.fits" evtable="EVENTS" scfile=/scratch/kocevski/497594/ft2_4FGL_J1521.8+4338_daily_bin132.fits sctable="SC_DATA" outfile=/scratch/kocevski/497594/ltcube_273542401_273801601_4FGL_J1521.8+4338_daily_bin132.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/497594/ft2_4FGL_J1521.8+4338_daily_bin132.fits
.....................!
real 11.84
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497594/ft1_filtered_4FGL_J1521.8+4338_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/497594/ft2_4FGL_J1521.8+4338_daily_bin132.fits sctable="SC_DATA" expcube=/scratch/kocevski/497594/ltcube_273542401_273801601_4FGL_J1521.8+4338_daily_bin132.fits outfile=/scratch/kocevski/497594/expmap_273542401_273801601_4FGL_J1521.8+4338_daily_bin132.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/497594/ltcube_273542401_273801601_4FGL_J1521.8+4338_daily_bin132.fits
.....................!
real 191.50
user 185.78
sys 5.35

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/497594/ft1_filtered_4FGL_J1521.8+4338_daily_bin132.fits scfile=/scratch/kocevski/497594/ft2_4FGL_J1521.8+4338_daily_bin132.fits outfile=/scratch/kocevski/497594/cmap_273542401_273801601_4FGL_J1521.8+4338_daily_bin132.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/497594/ft1_filtered_4FGL_J1521.8+4338_daily_bin132.fits scfile=/scratch/kocevski/497594/ft2_4FGL_J1521.8+4338_daily_bin132.fits outfile=/scratch/kocevski/497594/cmap_HighResolution_273542401_273801601_4FGL_J1521.8+4338_daily_bin132.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.433       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.723       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.143       1.0000         .10000E-03   10000.    
     7 'norm      '    8.1928       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1428       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.839       1.0000         .10000E-03   10000.    
    10 'norm      '    .84125       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2074       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4705       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.741       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.444       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.815       1.0000         .10000E-03   10000.    
    19 'norm      '    6.3400       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.668       1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.8157       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .39999E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0356       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88124       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=   7497.960     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3444 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.433        23.303       -.18953E-06    .25985E-04
   2  Prefactor     .10000E-03    16.011       -.83583E-05** at limit **
   3  Prefactor     .10000E-03    34.263       -.99638E-05** at limit **
   4  norm          17.723        7.4333       -.12527E-06   -.57461E-04
   5  Prefactor     .10000E-03    25.140        .12524E-04** at limit **
   6  Prefactor     18.144        13.147       -.50488E-07    .52739E-04
   7  norm          8.1921        7.2139       -.41698E-07   -.17235E-05
   8  Prefactor     8.1434        12.151       -.18633E-06   -.71367E-04
   9  Prefactor     12.837        12.596       -.19252E-06    .30714E-04
  10  norm          .84089        1.2270       -.29429E-06   -.16107E-02
  11  Prefactor     .10000E-03    6.5136       -.17722E-06** at limit **
  12  Prefactor     .10000E-03    4.7337       -.84702E-06** at limit **
  13  norm          2.2090        1.8435        .13598E-05   -.10785E-03
  14  norm          5.4697        3.4362       -.11227E-06   -.67807E-04
  15  Prefactor     .10000E-03    4.7501        .65159E-06** at limit **
  16  Prefactor     60.707        76.229       -.40312E-04   -.21811E-04
  17  Prefactor     41.442        26.304       -.18306E-05   -.36080E-04
  18  Prefactor     22.815        16.644        .98344E-06   -.44300E-04
  19  norm          6.3402        2.0018        .17977E-06   -.10751E-03
  20  Prefactor     12.670        12.990        .50924E-06   -.12006E-03
  21  norm          .10000E-03    12.068        .68779E-05** at limit **
  22  Prefactor     .10000E-03    13.942       -.25137E-05** at limit **
  23  Prefactor     .10000E-03    32.334        .13024E-05** at limit **
  24  Prefactor     6.8179        4.7814        .90281E-07   -.70864E-04
  25  Prefactor     .10000E-03    8.6463       -.13371E-05** at limit **
  26  Prefactor     .10002E-03    1.9679        .67289E-06** at limit **
  27  Normalizat    1.0352        .17793        .94350E-06   -.11643E-03
  28  Prefactor     .88177        .17570        .87840E-06   -.11357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.7231
  Prefactor  = 0.0001
  Prefactor  = 18.144
  norm       = 8.19209
  Prefactor  = 8.14342
  Prefactor  = 12.8365
  norm       = 0.840886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20899
  norm       = 5.46965
  Prefactor  = 0.0001
  Prefactor  = 60.7071
  Prefactor  = 41.4415
  Prefactor  = 22.8152
  norm       = 6.34015
  Prefactor  = 12.6701
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.81794
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Normalizat = 1.03518
  Prefactor  = 0.881774
 **********
 **   18 **HESSE 
 **********

 FCN=   7497.960     FROM HESSE     STATUS=OK           525 CALLS     3969 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.433        23.368        .71467E-04   -1.4586    
   2  Prefactor     .10000E-03    16.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.723        7.4383        .95138E-04   -1.4866    
   5  Prefactor     .10000E-03    25.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.144        13.133        .94030E-04   -1.4856    
   7  norm          8.1921        7.2152        .14007E-03   -1.5135    
   8  Prefactor     8.1434        12.127        .14050E-03   -1.5137    
   9  Prefactor     12.837        12.491        .11179E-03   -1.4991    
  10  norm          .84089        1.0688        .11010E-02   -1.5525    
  11  Prefactor     .10000E-03    6.6119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2090        1.8218        .96557E-04   -1.5411    
  14  norm          5.4697        3.4311        .12029E-03   -1.5240    
  15  Prefactor     .10000E-03    4.7625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     60.707        76.023        .51482E-04   -1.4148    
  17  Prefactor     41.442        26.283        .62268E-04   -1.4420    
  18  Prefactor     22.815        16.674        .83859E-04   -1.4752    
  19  norm          6.3402        2.0020        .66224E-04   -1.5204    
  20  Prefactor     12.670        12.974        .11254E-03   -1.4996    
  21  norm          .10000E-03    12.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.8179        4.7786        .15346E-03   -1.5186    
  25  Prefactor     .10000E-03    8.6578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    7.9623        .23435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0352        .21161        .24532E-03   -.91861    
  28  Prefactor     .88177        .20860        .27231E-03   -.96781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96726e-09
Minuit parameter uncertainties:
  1  23.375
  2  1.5585e-06
  3  3.24328e-05
  4  7.43874
  5  2.75777e-05
  6  13.1353
  7  7.216
  8  12.131
  9  12.4933
  10  1.06883
  11  2.39886e-05
  12  7.28456e-06
  13  1.8218
  14  3.43127
  15  8.36561e-07
  16  76.1447
  17  26.29
  18  16.677
  19  2.00204
  20  12.9765
  21  5.62935e-06
  22  9.97368e-06
  23  2.86992e-05
  24  4.77887
  25  1.30992e-05
  26  0.000823832
  27  0.211782
  28  0.208785
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.282e+01  1.668e+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:  8.818e-01  2.088e-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.035e+00  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.67
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 7.93e-08 +/- 5.79e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.20e-05

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) = 7497.95198513
delta logL = 0.00802479654158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7497.95100784
delta logL = 0.00900208474832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.342       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8487       1.0000          .0000       10.000    
     3 'Normalizat'    1.0409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87764       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=   7497.951     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      262 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.342        15.540        .82908E-04    .54151E-03
   2  Index         2.8487        .65263        .91886E-02    .12429E-03
   3  Normalizat    1.0409        .20724        .24473E-03   -.74929E-04
   4  Prefactor     .87764        .20896        .27289E-03   -.62491E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.3422
  Index      = 2.8487
  Normalizat = 1.04094
  Prefactor  = 0.87764
 **********
 **   18 **HESSE 
 **********

 FCN=   7497.951     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.342        15.398        .16582E-04   -1.4741    
   2  Index         2.8487        .64587        .36754E-03   -.44478    
   3  Normalizat    1.0409        .20754        .97894E-05   -.91671    
   4  Prefactor     .87764        .20919        .10915E-04   -.96927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04332e-10
Minuit parameter uncertainties:
  1  15.4009
  2  0.648091
  3  0.207706
  4  0.209383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497594': 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) = 7497.95100784
delta logL = 0.00900208531402

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.334e+01  1.540e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.849e+00  6.481e-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:  8.776e-01  2.094e-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.041e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 230.464 43.634
Photon Index (Free Index): 2.85 +/- 0.65
Photon Flux (Free Index): 7.50e-08 +/- 5.90e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/497594/cmap_HighResolution_273542401_273801601_4FGL_J1521.8+4338_daily_bin132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.93e-08', energy_flux2='1.63e-05', photon_flux_error='5.79e-08', dlogl='9.00e-03', energy_flux='1.64e-05', photon_flux2='7.50e-08', job_status='DONE', time_completed='2021-09-12 01:54:05.619219', photon_index_error2='0.65', photon_index2='2.85', ts='4.67', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='1.04', time_epoch_completed='1631436845.62', return_code='0', job_id='497594', GAL2='0.88', EG2='1.04', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.90e-08', ts2='4.72', photon_index='2.94' WHERE bin_id='132' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:54:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 497594: <4FGL_J1521.8+4338_daily_bin132> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin132> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 01:40:20 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:40:21 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:40:21 2021
Terminated at Sun Sep 12 01:54:07 2021
Results reported at Sun Sep 12 01:54:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin132 230.464 43.6344 273542401 273801601 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 :                                   803.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

