/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7399
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1362
RA = 230.464, Dec = 43.6344
tmin = 592358401, tmax = 592617601
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='504642', job_status='RUN', time_executed='2021-09-12 02:00:55.566294', time_epoch_executed='1631437255.57' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504642

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504642/ft1_4FGL_J1521.8+4338_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504642/ft2_4FGL_J1521.8+4338_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504642/ft1_4FGL_J1521.8+4338_daily_bin1362.fits outfile=/scratch/kocevski/504642/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1362.fits ra=230.464 dec=43.6344 rad=12.0 tmin=592358401.0 tmax=592617601.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.46
user 3.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504642/ft1_filtered_4FGL_J1521.8+4338_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/504642/ft2_4FGL_J1521.8+4338_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/504642/ltcube_592358401_592617601_4FGL_J1521.8+4338_daily_bin1362.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/504642/ft2_4FGL_J1521.8+4338_daily_bin1362.fits
.....................!
real 11.84
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504642/ft1_filtered_4FGL_J1521.8+4338_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/504642/ft2_4FGL_J1521.8+4338_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/504642/ltcube_592358401_592617601_4FGL_J1521.8+4338_daily_bin1362.fits outfile=/scratch/kocevski/504642/expmap_592358401_592617601_4FGL_J1521.8+4338_daily_bin1362.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/504642/ltcube_592358401_592617601_4FGL_J1521.8+4338_daily_bin1362.fits
.....................!
real 190.59
user 185.90
sys 4.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/504642/ft1_filtered_4FGL_J1521.8+4338_daily_bin1362.fits scfile=/scratch/kocevski/504642/ft2_4FGL_J1521.8+4338_daily_bin1362.fits outfile=/scratch/kocevski/504642/cmap_592358401_592617601_4FGL_J1521.8+4338_daily_bin1362.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504642/ft1_filtered_4FGL_J1521.8+4338_daily_bin1362.fits scfile=/scratch/kocevski/504642/ft2_4FGL_J1521.8+4338_daily_bin1362.fits outfile=/scratch/kocevski/504642/cmap_HighResolution_592358401_592617601_4FGL_J1521.8+4338_daily_bin1362.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.237       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8775       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.160       1.0000         .10000E-03   10000.    
     7 'norm      '    17.521       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.261       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5715       1.0000         .10000E-03   10000.    
    10 'norm      '    .42156       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6944       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .29588       1.0000         .10000E-03   10000.    
    14 'norm      '    4.9144       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22169E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.348       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2849       1.0000         .10000E-03   10000.    
    19 'norm      '    4.4831       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.958       1.0000         .10000E-03   10000.    
    21 'norm      '    .14571E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11285E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.6205       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.6210       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .98278       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82100       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=   5923.595     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3520 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.908       -.33899E-06** at limit **
   2  Prefactor     .10000E-03    11.229       -.94295E-07** at limit **
   3  Prefactor     48.239        26.315        .19814E-06   -.30290E-04
   4  norm          3.8780        4.3678        .13433E-07   -.64468E-04
   5  Prefactor     .10000E-03    12.301       -.10175E-06** at limit **
   6  Prefactor     13.159        11.562        .11478E-07    .38596E-04
   7  norm          17.519        11.198        .15281E-07   -.71981E-04
   8  Prefactor     16.270        14.968       -.14848E-07   -.25314E-03
   9  Prefactor     4.5729        8.4685        .61830E-07    .34155E-03
  10  norm          .42131        .99636        .12713E-06    .71272E-03
  11  Prefactor     4.7181        9.0928       -.68172E-06   -.92186E-04
  12  Prefactor     .10005E-03    10.760       -.32407E-05** at limit **
  13  norm          .29240        1.5647        .13288E-05    .36329E-03
  14  norm          4.9121        4.3251       -.20306E-06   -.42421E-03
  15  Prefactor     .10000E-03    8.7777        .77052E-06** at limit **
  16  Prefactor     29.457        64.734       -.56573E-05   -.12369E-03
  17  Prefactor     .10000E-03    9.8028        .10329E-06** at limit **
  18  Prefactor     3.2834        9.6133       -.44606E-06   -.21846E-03
  19  norm          4.4836        2.0579        .51104E-07   -.36755E-03
  20  Prefactor     18.954        17.279        .31211E-06   -.13956E-04
  21  norm          .10000E-03    27.220       -.36577E-06** at limit **
  22  Prefactor     .10000E-03    7.2826       -.65881E-07** at limit **
  23  Prefactor     .10000E-03    32.696       -.12484E-06** at limit **
  24  Prefactor     .10000E-03    2.9967       -.11600E-06** at limit **
  25  Prefactor     6.5982        17.429        .45216E-06   -.69521E-05
  26  Prefactor     2.6213        2.4288        .15198E-07   -.23385E-04
  27  Normalizat    .98259        .17649       -.20673E-05   -.36578E-03
  28  Prefactor     .82128        .17705        .19145E-05   -.20014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.2389
  norm       = 3.87801
  Prefactor  = 0.0001
  Prefactor  = 13.1593
  norm       = 17.5189
  Prefactor  = 16.2697
  Prefactor  = 4.5729
  norm       = 0.42131
  Prefactor  = 4.71814
  Prefactor  = 0.000100053
  norm       = 0.292396
  norm       = 4.91205
  Prefactor  = 0.000100003
  Prefactor  = 29.4565
  Prefactor  = 0.0001
  Prefactor  = 3.28337
  norm       = 4.48355
  Prefactor  = 18.9544
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.59818
  Prefactor  = 2.62131
  Normalizat = 0.982593
  Prefactor  = 0.821281
 **********
 **   18 **HESSE 
 **********

 FCN=   5923.595     FROM HESSE     STATUS=OK           529 CALLS     4049 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.239        26.411        .57736E-04   -1.4318    
   4  norm          3.8780        4.3628        .16518E-03   -1.5314    
   5  Prefactor     .10000E-03    12.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.159        11.536        .11042E-03   -1.4982    
   7  norm          17.519        11.195        .95683E-04   -1.4871    
   8  Prefactor     16.270        14.978        .99324E-04   -1.4901    
   9  Prefactor     4.5729        8.4772        .94134E-03   -1.5280    
  10  norm          .42131        .82106        .11354E-02   -1.5578    
  11  Prefactor     4.7181        8.9602        .92865E-03   -1.5274    
  12  Prefactor     .10005E-03    18.500        .31695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .29240        2.0244        .14240E-02   -1.5600    
  14  norm          4.9121        4.0370        .12911E-03   -1.5265    
  15  Prefactor     .10000E-03    24.083        .36161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.457        66.955        .73956E-04   -1.4622    
  17  Prefactor     .10000E-03    9.8310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2834        8.9104        .22340E-03   -1.5346    
  19  norm          4.4836        2.0547        .71229E-04   -1.5284    
  20  Prefactor     18.954        17.207        .91987E-04   -1.4837    
  21  norm          .10000E-03    28.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.0030        .12958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.5982        17.386        .15596E-03   -1.5194    
  26  Prefactor     2.6213        2.4359        .11244E-03   -1.5384    
  27  Normalizat    .98259        .20304        .21951E-03   -.93616    
  28  Prefactor     .82128        .20460        .25271E-03   -.98949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22991e-09
Minuit parameter uncertainties:
  1  2.88176e-05
  2  3.43883e-06
  3  26.4172
  4  4.36311
  5  4.54917e-07
  6  11.5376
  7  11.1967
  8  14.9818
  9  8.47946
  10  0.821083
  11  8.96272
  12  0.00197668
  13  1.53855
  14  4.03724
  15  0.0005184
  16  67.1262
  17  2.34788e-06
  18  8.91396
  19  2.05475
  20  17.2116
  21  1.45207e-05
  22  5.11756e-06
  23  3.24416e-05
  24  1.39662e-05
  25  17.3995
  26  2.43596
  27  0.203198
  28  0.204788
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  3.283e+00  8.914e+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

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  8.213e-01  2.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  9.826e-01  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/504642/likelihoodResults_592358401_592617601_4FGL_J1521.8+4338_daily_bin1362.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5923.57307493
delta logL = 0.022297470744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5923.57159653
delta logL = 0.0237758770272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8850       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3643       1.0000          .0000       10.000    
     3 'Normalizat'    .97717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82503       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5923.572     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      271 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9014        8.6368        .11964E-02    .38969E-03
   2  Index         3.3588        2.1778        .12344E-01    .59186E-04
   3  Normalizat    .97719        .19431        .22006E-03   -.97640E-05
   4  Prefactor     .82495        .20390        .25220E-03   -.54544E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.90141
  Index      = 3.35879
  Normalizat = 0.977194
  Prefactor  = 0.824949
 **********
 **   18 **HESSE 
 **********

 FCN=   5923.572     FROM HESSE     STATUS=OK            27 CALLS      298 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9014        7.9268        .23928E-03   -1.5367    
   2  Index         3.3588        2.0112        .24688E-02   -.33444    
   3  Normalizat    .97719        .19462        .88024E-05   -.93798    
   4  Prefactor     .82495        .20413        .10088E-04   -.98815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71146e-12
Minuit parameter uncertainties:
  1  7.92971
  2  2.07757
  3  0.194759
  4  0.204318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504642': 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) = 5923.57159243
delta logL = 0.0237799761044

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.901e+00  7.930e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  3.359e+00  2.078e+00  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.249e-01  2.043e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  9.772e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/504642/cmap_HighResolution_592358401_592617601_4FGL_J1521.8+4338_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2021-09-12 02:14:16.932736', job_id='504642', GAL2='0.82', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631438056.93', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.38e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1362' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:14:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 504642: <4FGL_J1521.8+4338_daily_bin1362> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1362> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 02:00:37 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:00:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 02:00:38 2021
Terminated at Sun Sep 12 02:14:19 2021
Results reported at Sun Sep 12 02:14:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1362 230.464 43.6344 592358401 592617601 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 :                                   796.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

