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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin749
RA = 230.464, Dec = 43.6344
tmin = 433468801, tmax = 433728001
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='500861', job_status='RUN', time_executed='2021-09-12 01:50:54.903325', time_epoch_executed='1631436654.9' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500861

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500861/ft1_4FGL_J1521.8+4338_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500861/ft2_4FGL_J1521.8+4338_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500861/ft1_4FGL_J1521.8+4338_daily_bin749.fits outfile=/scratch/kocevski/500861/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin749.fits ra=230.464 dec=43.6344 rad=12.0 tmin=433468801.0 tmax=433728001.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 6.14
user 5.89
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500861/ft1_filtered_4FGL_J1521.8+4338_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/500861/ft2_4FGL_J1521.8+4338_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/500861/ltcube_433468801_433728001_4FGL_J1521.8+4338_daily_bin749.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/500861/ft2_4FGL_J1521.8+4338_daily_bin749.fits
.....................!
real 12.33
user 11.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500861/ft1_filtered_4FGL_J1521.8+4338_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/500861/ft2_4FGL_J1521.8+4338_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/500861/ltcube_433468801_433728001_4FGL_J1521.8+4338_daily_bin749.fits outfile=/scratch/kocevski/500861/expmap_433468801_433728001_4FGL_J1521.8+4338_daily_bin749.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/500861/ltcube_433468801_433728001_4FGL_J1521.8+4338_daily_bin749.fits
.....................!
real 192.43
user 186.88
sys 4.98

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/500861/ft1_filtered_4FGL_J1521.8+4338_daily_bin749.fits scfile=/scratch/kocevski/500861/ft2_4FGL_J1521.8+4338_daily_bin749.fits outfile=/scratch/kocevski/500861/cmap_433468801_433728001_4FGL_J1521.8+4338_daily_bin749.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500861/ft1_filtered_4FGL_J1521.8+4338_daily_bin749.fits scfile=/scratch/kocevski/500861/ft2_4FGL_J1521.8+4338_daily_bin749.fits outfile=/scratch/kocevski/500861/cmap_HighResolution_433468801_433728001_4FGL_J1521.8+4338_daily_bin749.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/500861/ft1_filtered_4FGL_J1521.8+4338_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/500861/ft2_4FGL_J1521.8+4338_daily_bin749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500861/Model_4FGL_J1521.8+4338_daily_bin749.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/500861/ft1_filtered_4FGL_J1521.8+4338_daily_bin749.fits.....................!
real 56.25
user 54.88
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.590       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.858       1.0000         .10000E-03   10000.    
     4 'norm      '    .16489       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.159       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.972       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9085       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4942       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21380E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.9426       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.348       1.0000         .10000E-03   10000.    
    19 'norm      '    10.499       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.057       1.0000         .10000E-03   10000.    
    21 'norm      '    64.372       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.302       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.9777       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .73468       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2209       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=   7729.249     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3516 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.586        54.996        .74812E-06    .12203E-03
   2  Prefactor     .10000E-03    65.321        .12372E-05** at limit **
   3  Prefactor     21.858        32.551        .22219E-06    .92915E-04
   4  norm          .17128        4.3247       -.35873E-06   -.55601E-04
   5  Prefactor     24.156        28.711        .29932E-06    .62671E-04
   6  Prefactor     17.975        21.939        .34562E-06    .21498E-03
   7  norm          .10000E-03    1.7432       -.16307E-07** at limit **
   8  Prefactor     5.9082        6.4793       -.13243E-06    .68061E-04
   9  Prefactor     .10000E-03    32.047       -.95976E-06** at limit **
  10  norm          1.4946        2.1978        .72497E-06    .15937E-02
  11  Prefactor     1.3427        4.2210        .82192E-05   -.30744E-03
  12  Prefactor     .10000E-03    14.910        .28886E-06** at limit **
  13  norm          3.9425        1.6968       -.40545E-06    .77073E-03
  14  norm          .10000E-03    1.2858       -.71249E-07** at limit **
  15  Prefactor     .10000E-03    4.2173       -.19026E-06** at limit **
  16  Prefactor     .10000E-03    31.596       -.11401E-05** at limit **
  17  Prefactor     .10000E-03    7.9446       -.17833E-06** at limit **
  18  Prefactor     32.349        14.734        .35568E-06    .47170E-03
  19  norm          10.498        2.0567        .79279E-08    .36526E-03
  20  Prefactor     33.053        25.722        .11668E-06    .32512E-04
  21  norm          64.374        22.221       -.32040E-07    .82471E-04
  22  Prefactor     .10000E-03    11.142       -.18039E-07** at limit **
  23  Prefactor     28.340        75.487       -.63629E-05   -.98209E-04
  24  Prefactor     .10000E-03    4.1592        .94594E-06** at limit **
  25  Prefactor     .10000E-03    22.727        .27948E-05** at limit **
  26  Prefactor     7.9775        5.5179       -.20493E-06   -.42803E-03
  27  Normalizat    .73474        .19173        .31186E-06    .37875E-03
  28  Prefactor     1.2208        .17977       -.17298E-06    .43774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.5863
  Prefactor  = 0.0001
  Prefactor  = 21.8581
  norm       = 0.171282
  Prefactor  = 24.1558
  Prefactor  = 17.9752
  norm       = 0.0001
  Prefactor  = 5.90818
  Prefactor  = 0.0001
  norm       = 1.49457
  Prefactor  = 1.34267
  Prefactor  = 0.000100001
  norm       = 3.94247
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3493
  norm       = 10.4985
  Prefactor  = 33.0535
  norm       = 64.3735
  Prefactor  = 0.0001
  Prefactor  = 28.3396
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 7.97747
  Normalizat = 0.734743
  Prefactor  = 1.22084
 **********
 **   18 **HESSE 
 **********

 FCN=   7729.249     FROM HESSE     STATUS=OK           513 CALLS     4029 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.586        55.244        .51974E-04   -1.4163    
   2  Prefactor     .10000E-03    65.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.858        32.661        .85673E-04   -1.4773    
   4  norm          .17128        37.049        .34782E-02   -1.5625    
   5  Prefactor     24.156        28.784        .81497E-04   -1.4725    
   6  Prefactor     17.975        21.903        .94475E-04   -1.4860    
   7  norm          .10000E-03    1.7434        .11336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.9082        6.4792        .16521E-03   -1.5222    
   9  Prefactor     .10000E-03    32.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4946        2.1865        .15116E-03   -1.5463    
  11  Prefactor     1.3427        4.2397        .15286E-02   -1.5476    
  12  Prefactor     .10000E-03    15.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9425        1.6985        .69546E-04   -1.5311    
  14  norm          .10000E-03    1.2922        .97315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2297        .17619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.9529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.349        14.826        .70451E-04   -1.4570    
  19  norm          10.498        2.0593        .53366E-04   -1.5060    
  20  Prefactor     33.053        25.748        .69695E-04   -1.4557    
  21  norm          64.374        22.250        .50018E-04   -1.4102    
  22  Prefactor     .10000E-03    11.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.340        76.103        .75306E-04   -1.4643    
  24  Prefactor     .10000E-03    4.2458        .17552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.9775        5.5391        .14196E-03   -1.5143    
  27  Normalizat    .73474        .23491        .31388E-03   -1.0254    
  28  Prefactor     1.2208        .22026        .25349E-03   -.85693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68898e-08
Minuit parameter uncertainties:
  1  55.2912
  2  8.2232e-05
  3  32.6875
  4  5.03988
  5  28.8002
  6  21.9128
  7  1.69676e-06
  8  6.48
  9  0.000100196
  10  2.18663
  11  4.24067
  12  0.000283941
  13  1.69848
  14  6.42828e-06
  15  2.27956e-05
  16  4.61618e-05
  17  3.29384e-05
  18  14.8277
  19  2.05935
  20  25.7567
  21  22.2526
  22  5.73526e-05
  23  76.3655
  24  0.00013237
  25  0.00024853
  26  5.53947
  27  0.23523
  28  0.220425
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  3.235e+01  1.483e+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.221e+00  2.204e-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.347e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.00
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 5.15e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.06e-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) = 7729.24421018
delta logL = 0.00433053781489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7729.2418491
delta logL = 0.0066916226333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.305       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0039       1.0000          .0000       10.000    
     3 'Normalizat'    .72877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2257       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=   7729.242     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      241 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.306        17.628        .71613E-04   -.69210E-03
   2  Index         3.0039        .61388        .73841E-02   -.22962E-03
   3  Normalizat    .72885        .22270        .31505E-03    .17195E-03
   4  Prefactor     1.2257        .22178        .25307E-03    .29224E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.3065
  Index      = 3.00389
  Normalizat = 0.728854
  Prefactor  = 1.22566
 **********
 **   18 **HESSE 
 **********

 FCN=   7729.242     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.306        17.089        .14323E-04   -1.4588    
   2  Index         3.0039        .59447        .29536E-03   -.41067    
   3  Normalizat    .72885        .22276        .12602E-04   -1.0276    
   4  Prefactor     1.2257        .22177        .50614E-04   -.85545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00208e-10
Minuit parameter uncertainties:
  1  17.0921
  2  0.596145
  3  0.223034
  4  0.221941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500861': 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) = 7729.24184901
delta logL = 0.00669170433503

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  3.131e+01  1.709e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  3.004e+00  5.961e-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.226e+00  2.219e-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.289e-01  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.91
Ra Dec: 230.464 43.634
Photon Index (Free Index): 3.00 +/- 0.60
Photon Flux (Free Index): 1.16e-07 +/- 5.97e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.05e-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/500861/cmap_HighResolution_433468801_433728001_4FGL_J1521.8+4338_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='2.31e-05', photon_flux_error='5.15e-08', dlogl='6.69e-03', energy_flux='2.32e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-12 02:04:44.436168', photon_index_error2='0.60', photon_index2='3.00', ts='9.00', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='0.73', time_epoch_completed='1631437484.44', return_code='0', job_id='500861', GAL2='1.23', EG2='0.73', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='5.97e-08', ts2='8.91', photon_index='2.94' WHERE bin_id='749' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:04:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 500861: <4FGL_J1521.8+4338_daily_bin749> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin749> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep 12 01:50:39 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:50:40 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:50:40 2021
Terminated at Sun Sep 12 02:04:44 2021
Results reported at Sun Sep 12 02:04:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin749 230.464 43.6344 433468801 433728001 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 :                                   824.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            845 sec.

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

