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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1081
RA = 230.464, Dec = 43.6344
tmin = 519523201, tmax = 519782401
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='502867', job_status='RUN', time_executed='2021-09-12 01:58:54.651219', time_epoch_executed='1631437134.65' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502867

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502867/ft1_4FGL_J1521.8+4338_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502867/ft2_4FGL_J1521.8+4338_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502867/ft1_4FGL_J1521.8+4338_daily_bin1081.fits outfile=/scratch/kocevski/502867/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1081.fits ra=230.464 dec=43.6344 rad=12.0 tmin=519523201.0 tmax=519782401.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 2.95
user 2.72
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502867/ft1_filtered_4FGL_J1521.8+4338_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/502867/ft2_4FGL_J1521.8+4338_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/502867/ltcube_519523201_519782401_4FGL_J1521.8+4338_daily_bin1081.fits outfile=/scratch/kocevski/502867/expmap_519523201_519782401_4FGL_J1521.8+4338_daily_bin1081.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/502867/ltcube_519523201_519782401_4FGL_J1521.8+4338_daily_bin1081.fits
.....................!
real 190.88
user 185.77
sys 4.53

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/502867/ft1_filtered_4FGL_J1521.8+4338_daily_bin1081.fits scfile=/scratch/kocevski/502867/ft2_4FGL_J1521.8+4338_daily_bin1081.fits outfile=/scratch/kocevski/502867/cmap_519523201_519782401_4FGL_J1521.8+4338_daily_bin1081.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502867/ft1_filtered_4FGL_J1521.8+4338_daily_bin1081.fits scfile=/scratch/kocevski/502867/ft2_4FGL_J1521.8+4338_daily_bin1081.fits outfile=/scratch/kocevski/502867/cmap_HighResolution_519523201_519782401_4FGL_J1521.8+4338_daily_bin1081.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.6987       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3407       1.0000         .10000E-03   10000.    
     7 'norm      '    6.8558       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.4069       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8213       1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2969       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.595       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4052       1.0000         .10000E-03   10000.    
    19 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.832       1.0000         .10000E-03   10000.    
    21 'norm      '    22.494       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.077       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.7120       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.0212       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .15794E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .76284       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92857       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=   4414.991     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3542 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2604        .16204E-08** at limit **
   2  Prefactor     .10000E-03    38.448       -.14536E-05** at limit **
   3  Prefactor     .10000E-03    9.7645       -.22101E-08** at limit **
   4  norm          4.6984        4.7023        .24149E-06    .39566E-04
   5  Prefactor     .10000E-03    20.693       -.93112E-06** at limit **
   6  Prefactor     6.3414        17.398        .25376E-05    .41808E-04
   7  norm          6.8558        6.6138       -.22694E-07   -.33828E-04
   8  Prefactor     .10000E-03    23.169        .11119E-05** at limit **
   9  Prefactor     .10000E-03    6.4706        .15172E-08** at limit **
  10  norm          5.4069        2.2573       -.27749E-07    .13766E-04
  11  Prefactor     .10000E-03    4.1594       -.84331E-07** at limit **
  12  Prefactor     9.8216        6.9416       -.14609E-06   -.13500E-05
  13  norm          .10000E-03    .72844       -.94239E-07** at limit **
  14  norm          .10000E-03    1.3432        .13313E-07** at limit **
  15  Prefactor     3.2972        7.3324        .28753E-05    .17463E-03
  16  Prefactor     .10000E-03    31.347       -.27998E-06** at limit **
  17  Prefactor     23.594        36.347       -.48566E-05    .89588E-04
  18  Prefactor     3.4084        39.516        .90465E-05   -.59824E-04
  19  norm          .10000E-03    .66470       -.58147E-07** at limit **
  20  Prefactor     38.806        57.154        .63768E-05    .11419E-03
  21  norm          22.508        40.371       -.49383E-05   -.38265E-04
  22  Prefactor     15.082        29.621       -.65469E-06   -.12477E-04
  23  Prefactor     6.7058        66.899        .31149E-05    .19266E-04
  24  Prefactor     2.0211        5.9322        .77841E-06    .13475E-03
  25  Prefactor     .10000E-03    40.770       -.93478E-06** at limit **
  26  Prefactor     .10023E-03    3.0740       -.13349E-05** at limit **
  27  Normalizat    .76285        .17962       -.12485E-05    .11226E-03
  28  Prefactor     .92853        .19009        .59594E-07    .58843E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.69838
  Prefactor  = 0.0001
  Prefactor  = 6.34143
  norm       = 6.85584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.4069
  Prefactor  = 0.0001
  Prefactor  = 9.82161
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.29722
  Prefactor  = 0.0001
  Prefactor  = 23.5937
  Prefactor  = 3.40835
  norm       = 0.0001
  Prefactor  = 38.8064
  norm       = 22.5085
  Prefactor  = 15.0822
  Prefactor  = 6.70582
  Prefactor  = 2.02111
  Prefactor  = 0.0001
  Prefactor  = 0.000100232
  Normalizat = 0.762846
  Prefactor  = 0.928526
 **********
 **   18 **HESSE 
 **********

 FCN=   4414.991     FROM HESSE     STATUS=OK           527 CALLS     4069 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2634        .16238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.7769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.6984        4.7042        .13966E-03   -1.5274    
   5  Prefactor     .10000E-03    20.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3414        17.364        .79701E-03   -1.5204    
   7  norm          6.8558        6.6169        .15323E-03   -1.5184    
   8  Prefactor     .10000E-03    23.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4781        .16502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4069        2.2538        .61236E-04   -1.5243    
  11  Prefactor     .10000E-03    4.1834        .13230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.8216        6.9366        .12787E-03   -1.5081    
  13  norm          .10000E-03    .76231        .11059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3478        .75189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2972        7.0419        .11149E-02   -1.5345    
  16  Prefactor     .10000E-03    31.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.594        36.581        .82464E-04   -1.4736    
  18  Prefactor     3.4084        39.295        .10962E-02   -1.5339    
  19  norm          .10000E-03    1.0932        .10522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.806        57.299        .64320E-04   -1.4461    
  21  norm          22.508        40.446        .84455E-04   -1.4759    
  22  Prefactor     15.082        29.620        .10315E-03   -1.4931    
  23  Prefactor     6.7058        66.988        .15488E-03   -1.5190    
  24  Prefactor     2.0211        5.8782        .26423E-03   -1.5424    
  25  Prefactor     .10000E-03    40.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10023E-03    45.868        .21334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .76285        .21102        .23091E-03   -1.0146    
  28  Prefactor     .92853        .22524        .22913E-03   -.95151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25107e-09
Minuit parameter uncertainties:
  1  9.11324e-08
  2  0.000175074
  3  3.01255e-07
  4  4.70452
  5  7.64062e-05
  6  17.3778
  7  6.61762
  8  2.37063e-05
  9  2.66568e-06
  10  2.25383
  11  8.39995e-06
  12  6.93717
  13  4.05226e-06
  14  2.17643e-06
  15  7.04371
  16  5.34072e-05
  17  36.6161
  18  23.1645
  19  1.03196e-08
  20  57.3805
  21  40.4948
  22  29.6488
  23  42.4507
  24  5.87989
  25  0.000126513
  26  0.00652812
  27  0.211248
  28  0.225472
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  3.408e+00  2.316e+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:  9.285e-01  2.255e-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.628e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/502867/likelihoodResults_519523201_519782401_4FGL_J1521.8+4338_daily_bin1081.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) = 4414.07367233
delta logL = 0.917728658101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4414.05775394
delta logL = 0.933647046484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25868       1.0000         .10000E-03   10000.    
     2 'Index     '    6.7003       1.0000          .0000       10.000    
     3 'Normalizat'    .69118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98030       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.

 FCN=   4414.058     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      311 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25372        3.6405        .59368E-02    .14528E-02
   2  Index         6.7161        7.4804        .19151        .74355E-04
   3  Normalizat    .69098        .43102E-01    .42173E-01    .18046E-04
   4  Prefactor     .98064        .47122E-01    .46020E-01    .68453E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.253717
  Index      = 6.71613
  Normalizat = 0.690982
  Prefactor  = 0.980638
 **********
 **   18 **HESSE 
 **********

 FCN=   4414.058     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      346 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25372        8.5126        .26934E-03   -1.5607    
   2  Index         6.7161        8.3561        .74559E-02    .35035    
   3  Normalizat    .69098        .15860        .24110E-03   -1.0425    
   4  Prefactor     .98064        .16965        .22348E-03   -.93378    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.37886e-12
Minuit parameter uncertainties:
  1  2.93912
  2  8.8381
  3  0.158707
  4  0.169743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502867': 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) = 4414.05774463
delta logL = 0.933656359935

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.537e-01  2.939e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  6.716e+00  8.838e+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:  9.806e-01  1.697e-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:  6.910e-01  1.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 230.464 43.634
Photon Index (Free Index): 6.72 +/- 8.84
Photon Flux (Free Index): 6.82e-08 +/- 6.10e-08
Energy Flux (Free Index): 8.23e-06 +/- 8.99e-06

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/502867/cmap_HighResolution_519523201_519782401_4FGL_J1521.8+4338_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', comment='SUCCESS', energy_flux2='8.23e-06', dlogl='9.34e-01', photon_flux2='6.82e-08', job_status='DONE', time_completed='2021-09-12 02:10:26.711140', photon_index_error2='8.84', photon_index2='6.72', ts='0.07', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='8.99e-06', EG='0.76', time_epoch_completed='1631437826.71', return_code='0', job_id='502867', GAL2='0.98', EG2='0.69', return_code2='102', photon_flux_error2='6.10e-08', ts2='2.06', photon_index='2.94' WHERE bin_id='1081' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:10:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 502867: <4FGL_J1521.8+4338_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1081 230.464 43.6344 519523201 519782401 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 :                                   675.23 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             272.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

