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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1453
RA = 230.464, Dec = 43.6344
tmin = 615945601, tmax = 616204801
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='504776', job_status='RUN', time_executed='2021-09-12 02:01:00.663405', time_epoch_executed='1631437260.66' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504776/ft1_4FGL_J1521.8+4338_daily_bin1453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504776/ft2_4FGL_J1521.8+4338_daily_bin1453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504776/ft1_4FGL_J1521.8+4338_daily_bin1453.fits outfile=/scratch/kocevski/504776/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1453.fits ra=230.464 dec=43.6344 rad=12.0 tmin=615945601.0 tmax=616204801.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 4.23
user 3.97
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504776/ft2_4FGL_J1521.8+4338_daily_bin1453.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/504776/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1453.fits evtable="EVENTS" outfile="/scratch/kocevski/504776/ft1_filtered_4FGL_J1521.8+4338_daily_bin1453.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.54
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504776/ft1_filtered_4FGL_J1521.8+4338_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/504776/ft2_4FGL_J1521.8+4338_daily_bin1453.fits sctable="SC_DATA" expcube=/scratch/kocevski/504776/ltcube_615945601_616204801_4FGL_J1521.8+4338_daily_bin1453.fits outfile=/scratch/kocevski/504776/expmap_615945601_616204801_4FGL_J1521.8+4338_daily_bin1453.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/504776/ltcube_615945601_616204801_4FGL_J1521.8+4338_daily_bin1453.fits
.....................!
real 190.38
user 185.36
sys 4.64

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/504776/ft1_filtered_4FGL_J1521.8+4338_daily_bin1453.fits scfile=/scratch/kocevski/504776/ft2_4FGL_J1521.8+4338_daily_bin1453.fits outfile=/scratch/kocevski/504776/cmap_615945601_616204801_4FGL_J1521.8+4338_daily_bin1453.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504776/ft1_filtered_4FGL_J1521.8+4338_daily_bin1453.fits scfile=/scratch/kocevski/504776/ft2_4FGL_J1521.8+4338_daily_bin1453.fits outfile=/scratch/kocevski/504776/cmap_HighResolution_615945601_616204801_4FGL_J1521.8+4338_daily_bin1453.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2625       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.5434       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0503       1.0000         .10000E-03   10000.    
     7 'norm      '    17.243       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0294       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3434       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3559       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3190       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4050       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6487       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6483       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.371       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2217       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .52651       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=   5438.378     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3449 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2201        23.344       -.29687E-04   -.74900E-05
   2  Prefactor     .10000E-03    30.677       -.14663E-04** at limit **
   3  Prefactor     .10000E-03    14.993        .91789E-06** at limit **
   4  norm          4.5446        5.8395       -.49059E-06   -.24868E-03
   5  Prefactor     .10000E-03    11.196        .45851E-05** at limit **
   6  Prefactor     9.0522        8.9279        .49676E-06    .92855E-04
   7  norm          17.244        9.8763        .32961E-06    .44637E-03
   8  Prefactor     2.0288        10.653       -.15596E-05   -.28469E-03
   9  Prefactor     .10000E-03    4.2607        .30363E-07** at limit **
  10  norm          1.3435        1.2564       -.47228E-07   -.34199E-03
  11  Prefactor     3.3558        7.8036       -.58754E-06   -.32250E-03
  12  Prefactor     3.3194        3.9001        .12833E-05   -.19229E-03
  13  norm          2.4054        1.8667       -.12623E-06   -.45300E-03
  14  norm          1.6484        1.7732       -.82334E-07   -.15083E-03
  15  Prefactor     .10000E-03    1.6363        .61195E-07** at limit **
  16  Prefactor     .10000E-03    36.530        .17971E-04** at limit **
  17  Prefactor     5.6380        13.327       -.81569E-06   -.63575E-04
  18  Prefactor     .10000E-03    3.3261        .19793E-07** at limit **
  19  norm          .10000E-03    .52519       -.58644E-08** at limit **
  20  Prefactor     11.363        14.078       -.25607E-06   -.16392E-04
  21  norm          .10000E-03    7.2005        .24527E-06** at limit **
  22  Prefactor     .10000E-03    4.9833       -.11244E-07** at limit **
  23  Prefactor     .10000E-03    56.029        .26695E-05** at limit **
  24  Prefactor     .10000E-03    2.1145       -.32392E-07** at limit **
  25  Prefactor     .10000E-03    10.622       -.44300E-05** at limit **
  26  Prefactor     .10000E-03    2.4144       -.54350E-07** at limit **
  27  Normalizat    1.2215        .16502        .27580E-05   -.10483E-03
  28  Prefactor     .52674        .16622       -.13916E-05    .12656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.22009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.54464
  Prefactor  = 0.0001
  Prefactor  = 9.05225
  norm       = 17.2439
  Prefactor  = 2.02877
  Prefactor  = 0.0001
  norm       = 1.3435
  Prefactor  = 3.35577
  Prefactor  = 3.31943
  norm       = 2.40543
  norm       = 1.64841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.63797
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3627
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22148
  Prefactor  = 0.526742
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.378     FROM HESSE     STATUS=OK           519 CALLS     3968 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2201        23.394        .13168E-03   -1.5101    
   2  Prefactor     .10000E-03    30.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.5446        5.8419        .18887E-03   -1.5282    
   5  Prefactor     .10000E-03    11.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0522        8.9299        .13323E-03   -1.5106    
   7  norm          17.244        9.8765        .48225E-03   -1.4877    
   8  Prefactor     2.0288        10.588        .29041E-03   -1.5423    
   9  Prefactor     .10000E-03    4.2675        .14864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3435        1.2380        .77424E-04   -1.5476    
  11  Prefactor     3.3558        7.7247        .22091E-03   -1.5342    
  12  Prefactor     3.3194        3.8872        .15282E-03   -1.5344    
  13  norm          2.4054        1.8476        .75861E-04   -1.5398    
  14  norm          1.6484        1.7545        .99149E-04   -1.5451    
  15  Prefactor     .10000E-03    1.6377        .92110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6380        13.320        .16902E-03   -1.5233    
  18  Prefactor     .10000E-03    3.3358        .13130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .82046        .10395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.363        14.055        .11880E-03   -1.5034    
  21  norm          .10000E-03    7.2066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.9851        .16078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    56.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.1256        .10471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.4411        .11187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2215        .19143        .18932E-03   -.85942    
  28  Prefactor     .52674        .19193        .28695E-03   -1.1077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01372e-09
Minuit parameter uncertainties:
  1  23.4175
  2  4.92486e-05
  3  6.04603e-05
  4  5.84267
  5  2.39076e-06
  6  8.93125
  7  9.87738
  8  9.27199
  9  1.52716e-06
  10  1.23803
  11  7.72699
  12  3.88747
  13  1.84762
  14  1.7546
  15  1.07911e-06
  16  3.14046e-05
  17  13.327
  18  4.03529e-06
  19  1.08153e-05
  20  14.0587
  21  6.93733e-06
  22  2.87381e-06
  23  8.50129e-05
  24  4.60383e-06
  25  1.9274e-05
  26  9.11872e-06
  27  0.191536
  28  0.192171
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  4.035e-06  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:  5.267e-01  1.922e-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.221e+00  1.915e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504776/likelihoodResults_615945601_616204801_4FGL_J1521.8+4338_daily_bin1453.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) = 5438.37928466
delta logL = -0.00142177069756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5438.37786288
delta logL = 1.20562617667e-08

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 'Index     '    2.9297       1.0000          .0000       10.000    
     3 'Normalizat'    1.2215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52674       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=   5438.378     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.545        .13151E-01** at limit **
   2  Index         2.4632        6.1340        .50000       -.63596E-07
   3  Normalizat    1.2215        .17166E-01    .18932E-03    .65275E-04
   4  Prefactor     .52674        .17787E-01    .28695E-03    .42907E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4632
  Normalizat = 1.22149
  Prefactor  = 0.526739
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.378     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    669.62        .13592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4632        6.2236        .50000       -.53212    
   3  Normalizat    1.2215        .80620E-01    .37864E-04   -.85941    
   4  Prefactor     .52674        .83529E-01    .11478E-04   -1.1077    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.78297e-10
Minuit parameter uncertainties:
  1  2.76741e-06
  2  2143.52
  3  0.0806281
  4  0.083549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504776': 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) = 5438.37786189
delta logL = 1.00282431958e-06

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  2.767e-06  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.463e+00  2.144e+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:  5.267e-01  8.355e-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.221e+00  8.063e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/504776/cmap_HighResolution_615945601_616204801_4FGL_J1521.8+4338_daily_bin1453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-12 02:13:41.948549', job_id='504776', GAL2='0.53', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631438021.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='1.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1453' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:13:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 504776: <4FGL_J1521.8+4338_daily_bin1453> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1453> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 02:00:47 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:00:49 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:49 2021
Terminated at Sun Sep 12 02:13:42 2021
Results reported at Sun Sep 12 02:13:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1453 230.464 43.6344 615945601 616204801 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 :                                   750.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             372.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

