/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 3 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 = 6643
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1503.5+4759_daily_bin141
RA = 225.895, Dec = 47.9959
tmin = 275875201, tmax = 276134401
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='948162', job_status='RUN', time_executed='2021-09-10 18:26:33.777031', time_epoch_executed='1631323593.78' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948162

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948162/ft1_4FGL_J1503.5+4759_daily_bin141.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948162/ft2_4FGL_J1503.5+4759_daily_bin141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948162/ft1_4FGL_J1503.5+4759_daily_bin141.fits outfile=/scratch/kocevski/948162/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin141.fits ra=225.895 dec=47.9959 rad=12.0 tmin=275875201.0 tmax=276134401.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.22
user 2.97
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/948162/ft2_4FGL_J1503.5+4759_daily_bin141.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948162/ft2_4FGL_J1503.5+4759_daily_bin141.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/948162/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin141.fits evtable="EVENTS" outfile="/scratch/kocevski/948162/ft1_filtered_4FGL_J1503.5+4759_daily_bin141.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948162/ft1_filtered_4FGL_J1503.5+4759_daily_bin141.fits" evtable="EVENTS" scfile=/scratch/kocevski/948162/ft2_4FGL_J1503.5+4759_daily_bin141.fits sctable="SC_DATA" outfile=/scratch/kocevski/948162/ltcube_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.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/948162/ft2_4FGL_J1503.5+4759_daily_bin141.fits
.....................!
real 10.73
user 10.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948162/ft1_filtered_4FGL_J1503.5+4759_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/948162/ft2_4FGL_J1503.5+4759_daily_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/948162/ltcube_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.fits outfile=/scratch/kocevski/948162/expmap_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.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/948162/ltcube_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.fits
.....................!
real 189.97
user 185.23
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 203 point sources and 0 extended sources

Setting source of interest to:
4FGL J1503.5+4759 @ 225.895 47.9959

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/948162/ft1_filtered_4FGL_J1503.5+4759_daily_bin141.fits scfile=/scratch/kocevski/948162/ft2_4FGL_J1503.5+4759_daily_bin141.fits outfile=/scratch/kocevski/948162/cmap_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.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=225.895 yref=47.9959 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/948162/ft1_filtered_4FGL_J1503.5+4759_daily_bin141.fits scfile=/scratch/kocevski/948162/ft2_4FGL_J1503.5+4759_daily_bin141.fits outfile=/scratch/kocevski/948162/cmap_HighResolution_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.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=225.895 yref=47.9959 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948162/ft1_filtered_4FGL_J1503.5+4759_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/948162/ft2_4FGL_J1503.5+4759_daily_bin141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948162/Model_4FGL_J1503.5+4759_daily_bin141.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/948162/ft1_filtered_4FGL_J1503.5+4759_daily_bin141.fits.....................!
real 46.34
user 45.08
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948162/ft1_filtered_4FGL_J1503.5+4759_daily_bin141.fits', '/scratch/kocevski/948162/ft2_4FGL_J1503.5+4759_daily_bin141.fits', expMap='/scratch/kocevski/948162/expmap_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.fits', expCube='/scratch/kocevski/948162/ltcube_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948162/Model_4FGL_J1503.5+4759_daily_bin141.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1503.5+4759'

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  2.127e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/948162/ft1_filtered_4FGL_J1503.5+4759_daily_bin141.fits
Spacecraft file(s): /scratch/kocevski/948162/ft2_4FGL_J1503.5+4759_daily_bin141.fits
Exposure map: /scratch/kocevski/948162/expmap_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.fits
Exposure cube: /scratch/kocevski/948162/ltcube_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948162/Model_4FGL_J1503.5+4759_daily_bin141.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) = 5433.56471134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10260E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4347       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6610       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.125       1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.533       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.611       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.141       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5195       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8962       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7474       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.565       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0884       1.0000         .10000E-03   10000.    
    20 'norm      '    .10968E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1893       1.0000         .10000E-03   10000.    
    22 'norm      '    3.5764       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4190       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.130       1.0000         .10000E-03   10000.    
    25 'Prefactor '    50.978       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    37.409       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1800       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .57909       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5433.544     FROM MIGRAD    STATUS=CONVERGED    819 CALLS     4315 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.738       -.22578E-06** at limit **
   2  Prefactor     .10000E-03    42.396       -.75146E-06** at limit **
   3  Prefactor     .10000E-03    1.6159       -.23431E-07** at limit **
   4  Prefactor     6.4350        15.852        .26946E-05   -.54001E-04
   5  Prefactor     .10000E-03    1.0066       -.16259E-06** at limit **
   6  Prefactor     .10000E-03    10.571        .49891E-06** at limit **
   7  Prefactor     4.6549        43.941        .28099E-05   -.51850E-05
   8  Prefactor     35.119        25.613        .33069E-06   -.37755E-04
   9  Prefactor     68.517        46.796        .17984E-05   -.64598E-04
  10  Prefactor     11.611        21.025        .57590E-06   -.13246E-04
  11  Prefactor     .10000E-03    12.334       -.39834E-06** at limit **
  12  norm          11.141        7.7670       -.24763E-06    .79247E-05
  13  Prefactor     .10000E-03    11.433       -.72538E-07** at limit **
  14  Prefactor     .10000E-03    5.3484       -.28912E-06** at limit **
  15  Prefactor     6.5197        16.309        .24920E-05   -.69142E-04
  16  norm          1.8962        1.3364       -.34570E-07   -.10947E-03
  17  Prefactor     1.7666        9.6039        .14764E-04   -.25310E-03
  18  Prefactor     29.566        13.272       -.26009E-06   -.43072E-04
  19  Prefactor     5.0885        6.8772        .12539E-06   -.49506E-04
  20  norm          .10001E-03    1.3490       -.37867E-05** at limit **
  21  Prefactor     7.1890        8.9775        .18326E-05   -.15186E-03
  22  norm          3.5766        3.5304       -.97600E-08   -.11728E-03
  23  Prefactor     7.4178        10.697        .53511E-06   -.10091E-03
  24  Prefactor     12.077        56.127        .94898E-05   -.60373E-04
  25  Prefactor     50.994        25.323       -.95268E-06    .13246E-04
  26  Prefactor     .10000E-03    17.759        .11805E-05** at limit **
  27  norm          .10000E-03    19.131       -.26642E-06** at limit **
  28  Prefactor     .10000E-03    6.6951        .56418E-07** at limit **
  29  Prefactor     .10000E-03    4.5666        .84323E-07** at limit **
  30  Prefactor     37.422        67.930       -.46954E-06    .15773E-04
  31  Normalizat    1.1800        .18891       -.32480E-05    .12883E-03
  32  Prefactor     .57912        .18605        .50734E-06   -.85159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.43502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.65493
  Prefactor  = 35.119
  Prefactor  = 68.5166
  Prefactor  = 11.6108
  Prefactor  = 0.0001
  norm       = 11.1406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.51972
  norm       = 1.89624
  Prefactor  = 1.7666
  Prefactor  = 29.5655
  Prefactor  = 5.08852
  norm       = 0.000100005
  Prefactor  = 7.18898
  norm       = 3.57656
  Prefactor  = 7.41783
  Prefactor  = 12.0774
  Prefactor  = 50.9939
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4219
  Normalizat = 1.17998
  Prefactor  = 0.579123
 **********
 **   18 **HESSE 
 **********

 FCN=   5433.544     FROM HESSE     STATUS=OK           661 CALLS     4976 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6197        .91480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4350        15.819        .79110E-03   -1.5201    
   5  Prefactor     .10000E-03    1.0132        .72012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6549        43.358        .18641E-03   -1.5276    
   8  Prefactor     35.119        25.430        .67618E-04   -1.4522    
   9  Prefactor     68.517        46.782        .24243E-03   -1.4051    
  10  Prefactor     11.611        21.039        .11756E-03   -1.5026    
  11  Prefactor     .10000E-03    12.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.141        7.7680        .12003E-03   -1.5040    
  13  Prefactor     .10000E-03    11.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3562        .16647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5197        16.136        .78588E-03   -1.5197    
  16  norm          1.8962        1.3326        .67922E-04   -1.5433    
  17  Prefactor     1.7666        11.111        .15862E-02   -1.5442    
  18  Prefactor     29.566        13.257        .73684E-04   -1.4620    
  19  Prefactor     5.0885        6.8355        .17824E-03   -1.5257    
  20  norm          .10001E-03    2.5047        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1890        8.9158        .74800E-03   -1.5172    
  22  norm          3.5766        3.5133        .12229E-03   -1.5330    
  23  Prefactor     7.4178        10.585        .14725E-03   -1.5163    
  24  Prefactor     12.077        56.025        .11502E-03   -1.5013    
  25  Prefactor     50.994        25.320        .56169E-04   -1.4279    
  26  Prefactor     .10000E-03    17.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    19.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.6973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.5780        .15384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     37.422        67.964        .65528E-04   -1.4484    
  31  Normalizat    1.1800        .21556        .20743E-03   -.87224    
  32  Prefactor     .57912        .21239        .30974E-03   -1.0847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9038e-09
Minuit parameter uncertainties:
  1  7.60117e-06
  2  6.66549e-06
  3  1.78554e-06
  4  15.8295
  5  7.45483e-06
  6  1.22653e-06
  7  28.4402
  8  25.4374
  9  46.8068
  10  21.0525
  11  2.5667e-06
  12  7.76873
  13  9.54775e-06
  14  3.41636e-05
  15  16.1471
  16  1.33258
  17  8.86302
  18  13.2588
  19  6.83656
  20  0.000230472
  21  8.91749
  22  3.5135
  23  10.5876
  24  52.1046
  25  25.3249
  26  0.000180729
  27  3.90725e-05
  28  1.39808e-05
  29  1.16727e-05
  30  68.1055
  31  0.215724
  32  0.212681
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  5.089e+00  6.837e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  5.791e-01  2.127e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.180e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.81
Ra Dec: 225.895 47.996
Photon Flux Upper Limit: 9.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948162/likelihoodResults_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.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) = 5433.28293479
delta logL = 0.260903416251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5433.26611061
delta logL = 0.277727596976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5276       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7935       1.0000          .0000       10.000    
     3 'Normalizat'    1.1625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58828       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5433.266     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      246 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5231        65.225        .64232E-02    .51472E-03
   2  Index         2.7943        3.2677        .10451        .15357E-03
   3  Normalizat    1.1624        .54224E-01    .35884E-01   -.54129E-04
   4  Prefactor     .58832        .56479E-01    .69426E-01   -.28058E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52313
  Index      = 2.79426
  Normalizat = 1.1624
  Prefactor  = 0.58832
 **********
 **   18 **HESSE 
 **********

 FCN=   5433.266     FROM HESSE     STATUS=OK            31 CALLS      277 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5231        6.1972        .11008E-03   -1.5390    
   2  Index         2.7943        1.0680        .55443E-02   -.45688    
   3  Normalizat    1.1624        .19575        .20867E-03   -.87773    
   4  Prefactor     .58832        .20970        .30729E-03   -1.0808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84556e-11
Minuit parameter uncertainties:
  1  6.19878
  2  1.07837
  3  0.195877
  4  0.20998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948162': 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) = 5433.26610961
delta logL = 0.277728598038

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  2.523e+00  6.199e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.794e+00  1.078e+00  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  5.883e-01  2.100e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.162e+00  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 225.895 47.996
Photon Index (Free Index): 2.79 +/- 1.08
Photon Flux (Free Index): 4.16e-08 +/- 4.23e-08
Energy Flux (Free Index): 9.35e-06 +/- 1.03e-05

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/948162/cmap_HighResolution_275875201_276134401_4FGL_J1503.5+4759_daily_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', comment='SUCCESS', energy_flux2='9.35e-06', dlogl='2.78e-01', photon_flux2='4.16e-08', job_status='DONE', time_completed='2021-09-10 18:41:42.642637', photon_index_error2='1.08', photon_index2='2.79', ts='0.81', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='9.47e-08', energy_flux_error2='1.03e-05', EG='1.18', time_epoch_completed='1631324502.64', return_code='0', job_id='948162', GAL2='0.59', EG2='1.16', return_code2='0', photon_flux_error2='4.23e-08', ts2='1.36', photon_index='2.22' WHERE bin_id='141' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:41:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 948162: <4FGL_J1503.5+4759_daily_bin141> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin141> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 18:26:21 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:26:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 18:26:23 2021
Terminated at Fri Sep 10 18:41:43 2021
Results reported at Fri Sep 10 18:41:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin141 225.895 47.9959 275875201 276134401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1503.5+4759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   907.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            922 sec.

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

