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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin92
RA = 230.464, Dec = 43.6344
tmin = 263174401, tmax = 263433601
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='496490', job_status='RUN', time_executed='2021-09-12 01:38:48.056907', time_epoch_executed='1631435928.06' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496490

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496490/ft1_4FGL_J1521.8+4338_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496490/ft2_4FGL_J1521.8+4338_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496490/ft1_4FGL_J1521.8+4338_daily_bin92.fits outfile=/scratch/kocevski/496490/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin92.fits ra=230.464 dec=43.6344 rad=12.0 tmin=263174401.0 tmax=263433601.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 1.36
user 1.20
sys 0.15

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496490/ft1_filtered_4FGL_J1521.8+4338_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/496490/ft2_4FGL_J1521.8+4338_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/496490/ltcube_263174401_263433601_4FGL_J1521.8+4338_daily_bin92.fits outfile=/scratch/kocevski/496490/expmap_263174401_263433601_4FGL_J1521.8+4338_daily_bin92.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/496490/ltcube_263174401_263433601_4FGL_J1521.8+4338_daily_bin92.fits
.....................!
real 191.30
user 186.49
sys 4.40

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/496490/ft1_filtered_4FGL_J1521.8+4338_daily_bin92.fits scfile=/scratch/kocevski/496490/ft2_4FGL_J1521.8+4338_daily_bin92.fits outfile=/scratch/kocevski/496490/cmap_263174401_263433601_4FGL_J1521.8+4338_daily_bin92.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.54
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.508       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    77.736       1.0000         .10000E-03   10000.    
     4 'norm      '    .58679E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .24318       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.721       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.6176       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8553       1.0000         .10000E-03   10000.    
    13 'norm      '    .50043       1.0000         .10000E-03   10000.    
    14 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.217       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0337       1.0000         .10000E-03   10000.    
    19 'norm      '    8.2435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11599E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .78417       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0234       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=   5238.763     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3522 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.502        22.985       -.51461E-06    .13542E-04
   2  Prefactor     .10000E-03    42.800       -.20562E-06** at limit **
   3  Prefactor     77.736        34.171        .15126E-06    .32280E-04
   4  norm          .10709E-03    30.298        .10778E-04** at limit **
   5  Prefactor     .10000E-03    19.848       -.14535E-06** at limit **
   6  Prefactor     .10000E-03    30.774       -.92880E-06** at limit **
   7  norm          .22270        95.789        .19957E-04    .27173E-03
   8  Prefactor     22.731        16.929        .10972E-05    .15948E-03
   9  Prefactor     .10000E-03    13.644       -.23266E-06** at limit **
  10  norm          4.6173        2.1174       -.87619E-08    .44710E-04
  11  Prefactor     .10000E-03    4.9183        .59486E-06** at limit **
  12  Prefactor     4.8550        4.5393        .17743E-07    .30802E-04
  13  norm          .49947        1.4807       -.30836E-05   -.53619E-04
  14  norm          .10000E-03    2.6811       -.13298E-05** at limit **
  15  Prefactor     14.214        11.112        .67074E-06    .30055E-03
  16  Prefactor     .10000E-03    291.29       -.10624E-04** at limit **
  17  Prefactor     .10000E-03    9.6460       -.68047E-06** at limit **
  18  Prefactor     2.0255        25.627       -.44891E-05    .59058E-04
  19  norm          8.2430        2.4118       -.71755E-07    .59166E-03
  20  Prefactor     .10000E-03    14.775       -.26915E-06** at limit **
  21  norm          .10000E-03    25.533       -.23599E-06** at limit **
  22  Prefactor     .10000E-03    23.982       -.21858E-06** at limit **
  23  Prefactor     .10000E-03    38.297       -.50708E-06** at limit **
  24  Prefactor     .10000E-03    1.5933       -.82932E-07** at limit **
  25  Prefactor     .10000E-03    11.923       -.33405E-06** at limit **
  26  Prefactor     .10000E-03    2.4107       -.71490E-07** at limit **
  27  Normalizat    .78432        .19104        .35334E-05    .27471E-03
  28  Prefactor     1.0233        .19372       -.15357E-05    .48350E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5016
  Prefactor  = 0.0001
  Prefactor  = 77.7364
  norm       = 0.000107086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.222701
  Prefactor  = 22.7306
  Prefactor  = 0.0001
  norm       = 4.61728
  Prefactor  = 0.0001
  Prefactor  = 4.85497
  norm       = 0.499472
  norm       = 0.0001
  Prefactor  = 14.2144
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 2.02553
  norm       = 8.24301
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.784325
  Prefactor  = 1.02326
 **********
 **   18 **HESSE 
 **********

 FCN=   5238.763     FROM HESSE     STATUS=OK           523 CALLS     4045 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.502        23.010        .11809E-03   -1.5030    
   2  Prefactor     .10000E-03    42.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     77.736        34.209        .45546E-04   -1.3942    
   4  norm          .10709E-03    10.267        .53177E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .22270        108.65        .36718E-02   -1.5614    
   8  Prefactor     22.731        17.035        .84033E-04   -1.4754    
   9  Prefactor     .10000E-03    13.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.6173        2.1148        .68588E-04   -1.5278    
  11  Prefactor     .10000E-03    4.9655        .15686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8550        4.5339        .14447E-03   -1.5267    
  13  norm          .49947        1.4808        .14377E-03   -1.5567    
  14  norm          .10000E-03    2.7200        .11514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.214        11.187        .10623E-03   -1.4954    
  16  Prefactor     .10000E-03    290.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0255        26.137        .14503E-02   -1.5423    
  19  norm          8.2430        2.4100        .58581E-04   -1.5134    
  20  Prefactor     .10000E-03    14.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    26.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.5983        .89225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    28.372        .21589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .78432        .22308        .24916E-03   -1.0065    
  28  Prefactor     1.0233        .22843        .23649E-03   -.91958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5781e-09
Minuit parameter uncertainties:
  1  23.0277
  2  2.56755e-05
  3  34.2175
  4  0.017062
  5  7.65897e-05
  6  0.000172288
  7  9.85383
  8  17.0385
  9  2.07677e-05
  10  2.11481
  11  8.81617e-05
  12  4.53422
  13  1.48091
  14  8.66239e-06
  15  11.1884
  16  0.00231393
  17  3.95112e-06
  18  14.5597
  19  2.41005
  20  3.66379e-05
  21  7.08929e-05
  22  4.69966e-05
  23  0.000175514
  24  2.02217e-06
  25  3.58918e-05
  26  0.000178112
  27  0.223339
  28  0.228645
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.026e+00  1.456e+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.023e+00  2.286e-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:  7.843e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/496490/likelihoodResults_263174401_263433601_4FGL_J1521.8+4338_daily_bin92.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) = 5238.69759467
delta logL = 0.0650974361715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5238.66748394
delta logL = 0.095208162792

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16619       1.0000         .10000E-03   10000.    
     2 'Index     '    6.2451       1.0000          .0000       10.000    
     3 'Normalizat'    .75690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0446       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=   5238.667     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      256 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17361        5.9571        .98222E-02    .24522E-02
   2  Index         6.2195        7.7857        .26166        .66231E-04
   3  Normalizat    .75679        .25328E-01    .43045E-01    .34668E-04
   4  Prefactor     1.0447        .27275E-01    .40238E-01    .18023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.173614
  Index      = 6.21951
  Normalizat = 0.756787
  Prefactor  = 1.04468
 **********
 **   18 **HESSE 
 **********

 FCN=   5238.667     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      291 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17361        36.081        .59566E-03   -1.5625    
   2  Index         6.2195        6.7400        .15891E-01    .24639    
   3  Normalizat    .75679        .11477        .25324E-03   -1.0169    
   4  Prefactor     1.0447        .12156        .23435E-03   -.91255    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.01694e-11
Minuit parameter uncertainties:
  1  5.00728
  2  22.3553
  3  0.114806
  4  0.121593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496490': 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) = 5238.66746802
delta logL = 0.0952240816914

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.736e-01  5.007e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  6.220e+00  2.236e+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.045e+00  1.216e-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:  7.568e-01  1.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/496490/cmap_HighResolution_263174401_263433601_4FGL_J1521.8+4338_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.72e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-12 01:51:06.445457', job_id='496490', GAL2='1.04', fit_tolerance='1e-08', EG2='0.76', EG='0.78', time_epoch_completed='1631436666.45', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.52e-02', ts2='0.25', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='92' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:51:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 496490: <4FGL_J1521.8+4338_daily_bin92> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin92 230.464 43.6344 263174401 263433601 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 :                                   737.01 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             257.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

