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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1200
RA = 230.464, Dec = 43.6344
tmin = 550368001, tmax = 550627201
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='504408', job_status='RUN', time_executed='2021-09-12 02:03:42.531450', time_epoch_executed='1631437422.53' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504408

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504408/ft1_4FGL_J1521.8+4338_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504408/ft2_4FGL_J1521.8+4338_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504408/ft1_4FGL_J1521.8+4338_daily_bin1200.fits outfile=/scratch/kocevski/504408/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1200.fits ra=230.464 dec=43.6344 rad=12.0 tmin=550368001.0 tmax=550627201.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.03
user 3.78
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504408/ft1_filtered_4FGL_J1521.8+4338_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/504408/ft2_4FGL_J1521.8+4338_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/504408/ltcube_550368001_550627201_4FGL_J1521.8+4338_daily_bin1200.fits outfile=/scratch/kocevski/504408/expmap_550368001_550627201_4FGL_J1521.8+4338_daily_bin1200.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/504408/ltcube_550368001_550627201_4FGL_J1521.8+4338_daily_bin1200.fits
.....................!
real 191.09
user 184.60
sys 5.55

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/504408/ft1_filtered_4FGL_J1521.8+4338_daily_bin1200.fits scfile=/scratch/kocevski/504408/ft2_4FGL_J1521.8+4338_daily_bin1200.fits outfile=/scratch/kocevski/504408/cmap_550368001_550627201_4FGL_J1521.8+4338_daily_bin1200.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504408/ft1_filtered_4FGL_J1521.8+4338_daily_bin1200.fits scfile=/scratch/kocevski/504408/ft2_4FGL_J1521.8+4338_daily_bin1200.fits outfile=/scratch/kocevski/504408/cmap_HighResolution_550368001_550627201_4FGL_J1521.8+4338_daily_bin1200.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.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504408/ft1_filtered_4FGL_J1521.8+4338_daily_bin1200.fits', '/scratch/kocevski/504408/ft2_4FGL_J1521.8+4338_daily_bin1200.fits', expMap='/scratch/kocevski/504408/expmap_550368001_550627201_4FGL_J1521.8+4338_daily_bin1200.fits', expCube='/scratch/kocevski/504408/ltcube_550368001_550627201_4FGL_J1521.8+4338_daily_bin1200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504408/Model_4FGL_J1521.8+4338_daily_bin1200.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/504408/ft1_filtered_4FGL_J1521.8+4338_daily_bin1200.fits
Spacecraft file(s): /scratch/kocevski/504408/ft2_4FGL_J1521.8+4338_daily_bin1200.fits
Exposure map: /scratch/kocevski/504408/expmap_550368001_550627201_4FGL_J1521.8+4338_daily_bin1200.fits
Exposure cube: /scratch/kocevski/504408/ltcube_550368001_550627201_4FGL_J1521.8+4338_daily_bin1200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504408/Model_4FGL_J1521.8+4338_daily_bin1200.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 184.455931152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 181.233564192

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10372       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2851       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .99794E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .20423E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    112.23       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2044       1.0000         .10000E-03   10000.    
     7 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    174.07       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4033       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1179       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1271       1.0000         .10000E-03   10000.    
    13 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .67092E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11399       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19221       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .94255E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11522       1.0000         .10000E-03   10000.    
    19 'norm      '    15.308       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .41135       1.0000         .10000E-03   10000.    
    21 'norm      '    .96886E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25629E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5768       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4206       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.2131       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.2534       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10027E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .19510       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   181.2288     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      530 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14432E-03    317.54       -.34830E-03** at limit **
   2  Prefactor     5.2851        1.0045         .0000         .0000    
   3  Prefactor     .10002E-03    143.73        .29113E-04** at limit **
   4  norm          .10000E-03    25.086       -.57943E-04** at limit **
   5  Prefactor     119.45        246.15       -.10052E-05   -.65352E-03
   6  Prefactor     6.2044        1.0033         .0000         .0000    
   7  norm          .10000E-03    31.071       -.84793E-04** at limit **
   8  Prefactor     174.36        10.392       -.59716E-05    .14144E-01
   9  Prefactor     1.4033        1.0841         .0000         .0000    
  10  norm          2.1179        1.0310         .0000         .0000    
  11  Prefactor     .10000E-03    23.291        .44707E-04** at limit **
  12  Prefactor     2.1271        1.0307         .0000         .0000    
  13  norm          .10000E-03    5.8818       -.28118E-04** at limit **
  14  norm          .19474E-03    101.42        .21164E-04** at limit **
  15  Prefactor     .20279E-03    306.55        .57311E-03** at limit **
  16  Prefactor     .10001E-03    169.27        .18186E-03** at limit **
  17  Prefactor     .10464E-03    299.54        .52436E-03** at limit **
  18  Prefactor     .14436E-03    180.97        .25690E-03** at limit **
  19  norm          15.331        7.9028       -.29018E-05   -.24487E-03
  20  Prefactor     .10000E-03    98.624       -.14154E-03** at limit **
  21  norm          .10001E-03    64.619       -.15240E-03** at limit **
  22  Prefactor     .41258E-03    4.9643        .79557E-04** at limit **
  23  Prefactor     4.5768        1.0061         .0000         .0000    
  24  Prefactor     1.4206        1.0814         .0000         .0000    
  25  Prefactor     3.2131        1.0126         .0000         .0000    
  26  Prefactor     1.2534        1.1170         .0000         .0000    
  27  Normalizat    .10000E-01    7.4943       -.11138E-02** at limit **
  28  Prefactor     .19066        .48780        .46338E-03   -.33313E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000144324
  Prefactor  = 5.28511
  Prefactor  = 0.000100023
  norm       = 0.000100002
  Prefactor  = 119.454
  Prefactor  = 6.20442
  norm       = 0.000100003
  Prefactor  = 174.364
  Prefactor  = 1.40334
  norm       = 2.11794
  Prefactor  = 0.000100003
  Prefactor  = 2.1271
  norm       = 0.0001
  norm       = 0.000194744
  Prefactor  = 0.000202786
  Prefactor  = 0.000100014
  Prefactor  = 0.000104642
  Prefactor  = 0.000144361
  norm       = 15.3306
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.000412575
  Prefactor  = 4.57678
  Prefactor  = 1.42061
  Prefactor  = 3.21315
  Prefactor  = 1.25338
  Normalizat = 0.01
  Prefactor  = 0.190662
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   181.2288     FROM HESSE     STATUS=FAILED        15 CALLS      545 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14432E-03    367.97        .95290E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     528.69        523.36         .0000       -1.5248    
   3  Prefactor     .10002E-03    .22611        .29113E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .25528       -.57943E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     119.45        1.0313       -.10052E-05   -1.3518    
   6  Prefactor     6.2044        1.0033         .0000       -1.5210    
   7  norm          .10000E-03    .20571       -.84793E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     174.36        1.0008       -.59716E-05   -1.3059    
   9  Prefactor     1.4033        1.0841         .0000       -1.5471    
  10  norm          2.1179        1.0310         .0000       -1.5417    
  11  Prefactor     .10000E-03    .20571        .44707E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1271        1.0307         .0000       -1.5416    
  13  norm          .10000E-03    .20571       -.28118E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .19474E-03    .21870        .21164E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .20279E-03    .22933        .57311E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    .24711        .18186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10464E-03    .22486        .52436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .14436E-03    .22961        .25690E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.331        1.0013       -.29018E-05   -1.4925    
  20  Prefactor     .10000E-03    .29720       -.14154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    .22545       -.15240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .41258E-03    .28769        .79557E-04   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5768        1.0061         .0000       -1.5280    
  24  Prefactor     1.4206        1.0814         .0000       -1.5470    
  25  Prefactor     3.2131        1.0126         .0000       -1.5349    
  26  Prefactor     1.2534        1.1170         .0000       -1.5484    
  27  Normalizat    .10000E-01    .25506       -.11138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .19066        .47152        .46338E-03   -1.2938    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36487e-09
Minuit parameter uncertainties:
  1  0.257015
  2  1.00455
  3  0.000143749
  4  5.01286e-05
  5  1.0313
  6  1.00328
  7  4.86559e-05
  8  1.00082
  9  1.08416
  10  1.03101
  11  4.59026e-05
  12  1.03071
  13  5.34354e-06
  14  0.00910404
  15  0.00971023
  16  0.000115545
  17  0.00204326
  18  0.00638302
  19  1.00126
  20  2.03084e-05
  21  8.95143e-05
  22  0.018966
  23  1.00609
  24  1.0814
  25  1.01265
  26  1.11705
  27  7.22382e-05
  28  0.481402
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 181.22876348

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.444e-04  6.383e-03  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.907e-01  4.814e-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.000e-02  7.224e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 1.06e-05 ph cm-2 s-1
Energy Flux Upper Limit: 8.42e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504408/likelihoodResults_550368001_550627201_4FGL_J1521.8+4338_daily_bin1200.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) = 181.228772704
delta logL = -9.22369099499e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 181.228764251
delta logL = -7.70653088011e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11499E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    4.0803       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .19074       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=   181.2288     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      315 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11526E-03    858.46        .18142E-01** at limit **
   2  Index         3.6482        6.1616        .50000        .58178E-06
   3  Normalizat    .10000E-01    .31962E-01    .10621E-01** at limit **
   4  Prefactor     .19067        .32103E-01    .42802E-03   -.10882E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000115263
  Index      = 3.64821
  Normalizat = 0.01
  Prefactor  = 0.190667
 **********
 **   18 **HESSE 
 **********

 FCN=   181.2288     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      344 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11526E-03    7474.5        .24184E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6482        8.1756        .50000       -.27377    
   3  Normalizat    .10000E-01    .22767        .21241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19067        .85534E-01    .17121E-04   -1.2937    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.47296e-09
Minuit parameter uncertainties:
  1  0.60972
  2  7976.13
  3  3.12441e-06
  4  0.0855903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504408': 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) = 181.228763508
delta logL = -2.78807306131e-08

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.153e-04  6.097e-01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  3.648e+00  7.976e+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:  1.907e-01  8.559e-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.000e-02  3.124e-06  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/504408/cmap_HighResolution_550368001_550627201_4FGL_J1521.8+4338_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.42e-01', job_status='DONE', photon_flux_upper_limit='1.06e-05', time_completed='2021-09-12 02:09:17.200805', job_id='504408', GAL2='0.19', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631437757.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.19', dlogl='-2.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1200' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:09:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 504408: <4FGL_J1521.8+4338_daily_bin1200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1200 230.464 43.6344 550368001 550627201 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 :                                   331.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             230.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            535 sec.

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

