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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin916
RA = 230.464, Dec = 43.6344
tmin = 476755201, tmax = 477014401
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='502577', job_status='RUN', time_executed='2021-09-12 01:55:32.734188', time_epoch_executed='1631436932.73' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='916'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502577/ft1_4FGL_J1521.8+4338_daily_bin916.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502577/ft2_4FGL_J1521.8+4338_daily_bin916.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502577/ft1_4FGL_J1521.8+4338_daily_bin916.fits outfile=/scratch/kocevski/502577/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin916.fits ra=230.464 dec=43.6344 rad=12.0 tmin=476755201.0 tmax=477014401.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.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/502577/ft2_4FGL_J1521.8+4338_daily_bin916.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/502577/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin916.fits evtable="EVENTS" outfile="/scratch/kocevski/502577/ft1_filtered_4FGL_J1521.8+4338_daily_bin916.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.52
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502577/ft1_filtered_4FGL_J1521.8+4338_daily_bin916.fits evtable="EVENTS" scfile=/scratch/kocevski/502577/ft2_4FGL_J1521.8+4338_daily_bin916.fits sctable="SC_DATA" expcube=/scratch/kocevski/502577/ltcube_476755201_477014401_4FGL_J1521.8+4338_daily_bin916.fits outfile=/scratch/kocevski/502577/expmap_476755201_477014401_4FGL_J1521.8+4338_daily_bin916.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/502577/ltcube_476755201_477014401_4FGL_J1521.8+4338_daily_bin916.fits
.....................!
real 189.94
user 185.16
sys 4.42

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/502577/ft1_filtered_4FGL_J1521.8+4338_daily_bin916.fits scfile=/scratch/kocevski/502577/ft2_4FGL_J1521.8+4338_daily_bin916.fits outfile=/scratch/kocevski/502577/cmap_476755201_477014401_4FGL_J1521.8+4338_daily_bin916.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.52
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502577/ft1_filtered_4FGL_J1521.8+4338_daily_bin916.fits scfile=/scratch/kocevski/502577/ft2_4FGL_J1521.8+4338_daily_bin916.fits outfile=/scratch/kocevski/502577/cmap_HighResolution_476755201_477014401_4FGL_J1521.8+4338_daily_bin916.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53450E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1257       1.0000         .10000E-03   10000.    
     4 'norm      '    11.232       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8111       1.0000         .10000E-03   10000.    
     7 'norm      '    .40474E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.032       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.972       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6690       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .86066       1.0000         .10000E-03   10000.    
    14 'norm      '    .16513E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .55582       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7689       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.9836       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.684       1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.581       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7631       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5805       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.0164       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3216       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .49620       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=   6879.111     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     4083 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10174E-03    18.214       -.50155E-05** at limit **
   2  Prefactor     .10000E-03    33.465       -.24542E-05** at limit **
   3  Prefactor     8.1304        20.683        .15168E-05    .61616E-04
   4  norm          11.230        7.7149        .55837E-06   -.38751E-03
   5  Prefactor     .10000E-03    11.031        .27475E-05** at limit **
   6  Prefactor     7.8141        13.972        .36452E-06    .81699E-04
   7  norm          .10001E-03    18.528        .12017E-04** at limit **
   8  Prefactor     32.011        17.723       -.24621E-05   -.11071E-02
   9  Prefactor     15.972        13.592       -.11880E-06   -.49952E-05
  10  norm          4.6690        1.6709        .45233E-08   -.37333E-05
  11  Prefactor     .10000E-03    5.8528        .63990E-06** at limit **
  12  Prefactor     .10000E-03    4.0246       -.18076E-06** at limit **
  13  norm          .86074        .94038        .17087E-06    .38339E-03
  14  norm          .10000E-03    1.7561        .46460E-06** at limit **
  15  Prefactor     .55590        7.0057        .53965E-07    .36899E-03
  16  Prefactor     .10000E-03    25.174       -.18382E-05** at limit **
  17  Prefactor     8.7663        10.962       -.51654E-07   -.63445E-04
  18  Prefactor     .10000E-03    4.1075        .34341E-06** at limit **
  19  norm          7.9837        2.2105        .54530E-07   -.50320E-05
  20  Prefactor     13.686        13.630        .42390E-06    .16054E-03
  21  norm          .10000E-03    10.531       -.20653E-05** at limit **
  22  Prefactor     11.582        15.483        .11646E-06    .77511E-05
  23  Prefactor     .10000E-03    26.857        .46028E-05** at limit **
  24  Prefactor     1.7606        9.6235       -.18739E-06    .25399E-03
  25  Prefactor     2.5875        124.88        .43454E-05    .50742E-04
  26  Prefactor     1.0158        3.3711        .86707E-06    .59681E-03
  27  Normalizat    1.3217        .16845       -.52202E-06   -.27348E-03
  28  Prefactor     .49609        .16351        .17798E-06   -.25046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101744
  Prefactor  = 0.000100001
  Prefactor  = 8.13036
  norm       = 11.2299
  Prefactor  = 0.000100001
  Prefactor  = 7.81406
  norm       = 0.000100011
  Prefactor  = 32.0111
  Prefactor  = 15.9725
  norm       = 4.669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.860742
  norm       = 0.000100001
  Prefactor  = 0.555897
  Prefactor  = 0.0001
  Prefactor  = 8.76626
  Prefactor  = 0.0001
  norm       = 7.98369
  Prefactor  = 13.6861
  norm       = 0.0001
  Prefactor  = 11.5816
  Prefactor  = 0.000100002
  Prefactor  = 1.76056
  Prefactor  = 2.58745
  Prefactor  = 1.01577
  Normalizat = 1.32169
  Prefactor  = 0.496094
 **********
 **   18 **HESSE 
 **********

 FCN=   6879.111     FROM HESSE     STATUS=OK           533 CALLS     4616 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10174E-03    18.411        .98947E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1304        20.761        .14065E-03   -1.5138    
   4  norm          11.230        7.6625        .11954E-03   -1.5038    
   5  Prefactor     .10000E-03    11.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8141        13.951        .14347E-03   -1.5149    
   7  norm          .10001E-03    20.368        .38895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.011        18.104        .70797E-04   -1.4576    
   9  Prefactor     15.972        13.583        .10022E-03   -1.4908    
  10  norm          4.6690        1.6706        .61010E-04   -1.5276    
  11  Prefactor     .10000E-03    5.9633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1098        .16232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .86074        .92599        .81064E-04   -1.5522    
  14  norm          .10000E-03    2.9846        .20182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55590        7.7888        .43670E-03   -1.5559    
  16  Prefactor     .10000E-03    25.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.7663        10.942        .13536E-03   -1.5116    
  18  Prefactor     .10000E-03    4.1270        .16413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.9837        2.2129        .62531E-04   -1.5143    
  20  Prefactor     13.686        13.633        .10828E-03   -1.4968    
  21  norm          .10000E-03    10.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.582        15.479        .11772E-03   -1.5027    
  23  Prefactor     .10000E-03    26.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.7606        7.3520        .31552E-03   -1.5443    
  25  Prefactor     2.5875        95.833        .25405E-03   -1.5386    
  26  Prefactor     1.0158        3.3444        .26808E-03   -1.5506    
  27  Normalizat    1.3217        .19920        .20678E-03   -.82921    
  28  Prefactor     .49609        .18997        .32474E-03   -1.1216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00679e-09
Minuit parameter uncertainties:
  1  0.0113367
  2  0.000262942
  3  20.7792
  4  7.66322
  5  0.000162129
  6  13.9568
  7  0.000947665
  8  18.1068
  9  13.5856
  10  1.67063
  11  8.99507e-05
  12  4.70203e-06
  13  0.926003
  14  8.09187e-05
  15  4.16191
  16  0.000161091
  17  10.944
  18  1.26784e-05
  19  2.21294
  20  13.6356
  21  0.00012965
  22  15.4846
  23  0.000426899
  24  7.19677
  25  31.5477
  26  3.345
  27  0.199313
  28  0.190217
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  4.961e-01  1.902e-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.322e+00  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/502577/likelihoodResults_476755201_477014401_4FGL_J1521.8+4338_daily_bin916.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) = 6879.11207767
delta logL = -0.00115181018009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6879.11092584
delta logL = 1.42990757013e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9278       1.0000          .0000       10.000    
     3 'Normalizat'    1.3217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49610       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=   6879.111     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      253 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.436        .16458E-01** at limit **
   2  Index         2.5480        5.4205        .50000       -.10073E-07
   3  Normalizat    1.3217        .10049E-01    .20678E-03    .10741E-03
   4  Prefactor     .49610        .10134E-01    .32474E-03    .90428E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.54803
  Normalizat = 1.32169
  Prefactor  = 0.496096
 **********
 **   18 **HESSE 
 **********

 FCN=   6879.111     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    303.90        .16949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5480        6.9739        .50000       -.51254    
   3  Normalizat    1.3217        .34891E-01    .41356E-04   -.82921    
   4  Prefactor     .49610        .35187E-01    .12989E-04   -1.1216    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28701e-11
Minuit parameter uncertainties:
  1  2.90381e-06
  2  1228.5
  3  0.0348921
  4  0.0351883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502577': 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) = 6879.11092505
delta logL = 8.08759978099e-07

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  2.904e-06  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.548e+00  1.228e+03  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:  4.961e-01  3.519e-02  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.322e+00  3.489e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 230.464 43.634

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/502577/cmap_HighResolution_476755201_477014401_4FGL_J1521.8+4338_daily_bin916.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2021-09-12 02:11:01.876337', job_id='502577', GAL2='0.50', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631437861.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='8.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='916' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:11:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 502577: <4FGL_J1521.8+4338_daily_bin916> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin916 230.464 43.6344 476755201 477014401 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 :                                   926.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            944 sec.

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

