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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin555
RA = 225.895, Dec = 47.9959
tmin = 383184001, tmax = 383443201
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='950683', job_status='RUN', time_executed='2021-09-10 18:36:37.856955', time_epoch_executed='1631324197.86' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950683/ft1_4FGL_J1503.5+4759_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950683/ft2_4FGL_J1503.5+4759_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950683/ft1_4FGL_J1503.5+4759_daily_bin555.fits outfile=/scratch/kocevski/950683/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin555.fits ra=225.895 dec=47.9959 rad=12.0 tmin=383184001.0 tmax=383443201.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.44
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950683/ft2_4FGL_J1503.5+4759_daily_bin555.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/950683/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin555.fits evtable="EVENTS" outfile="/scratch/kocevski/950683/ft1_filtered_4FGL_J1503.5+4759_daily_bin555.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950683/ft1_filtered_4FGL_J1503.5+4759_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/950683/ft2_4FGL_J1503.5+4759_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/950683/ltcube_383184001_383443201_4FGL_J1503.5+4759_daily_bin555.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/950683/ft2_4FGL_J1503.5+4759_daily_bin555.fits
.....................!
real 11.92
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950683/ft1_filtered_4FGL_J1503.5+4759_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/950683/ft2_4FGL_J1503.5+4759_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/950683/ltcube_383184001_383443201_4FGL_J1503.5+4759_daily_bin555.fits outfile=/scratch/kocevski/950683/expmap_383184001_383443201_4FGL_J1503.5+4759_daily_bin555.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/950683/ltcube_383184001_383443201_4FGL_J1503.5+4759_daily_bin555.fits
.....................!
real 189.92
user 185.12
sys 4.44

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/950683/ft1_filtered_4FGL_J1503.5+4759_daily_bin555.fits scfile=/scratch/kocevski/950683/ft2_4FGL_J1503.5+4759_daily_bin555.fits outfile=/scratch/kocevski/950683/cmap_383184001_383443201_4FGL_J1503.5+4759_daily_bin555.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950683/ft1_filtered_4FGL_J1503.5+4759_daily_bin555.fits scfile=/scratch/kocevski/950683/ft2_4FGL_J1503.5+4759_daily_bin555.fits outfile=/scratch/kocevski/950683/cmap_HighResolution_383184001_383443201_4FGL_J1503.5+4759_daily_bin555.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.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950683/ft1_filtered_4FGL_J1503.5+4759_daily_bin555.fits', '/scratch/kocevski/950683/ft2_4FGL_J1503.5+4759_daily_bin555.fits', expMap='/scratch/kocevski/950683/expmap_383184001_383443201_4FGL_J1503.5+4759_daily_bin555.fits', expCube='/scratch/kocevski/950683/ltcube_383184001_383443201_4FGL_J1503.5+4759_daily_bin555.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950683/Model_4FGL_J1503.5+4759_daily_bin555.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/950683/ft1_filtered_4FGL_J1503.5+4759_daily_bin555.fits
Spacecraft file(s): /scratch/kocevski/950683/ft2_4FGL_J1503.5+4759_daily_bin555.fits
Exposure map: /scratch/kocevski/950683/expmap_383184001_383443201_4FGL_J1503.5+4759_daily_bin555.fits
Exposure cube: /scratch/kocevski/950683/ltcube_383184001_383443201_4FGL_J1503.5+4759_daily_bin555.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950683/Model_4FGL_J1503.5+4759_daily_bin555.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) = 6577.93368667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0454       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5953       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.570       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43905E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11631E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.239       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44338       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.638       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0591       1.0000         .10000E-03   10000.    
    20 'norm      '    .69034       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11230E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    63.262       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.3503       1.0000         .10000E-03   10000.    
    30 'Prefactor '    19.027       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .77284       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1355       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=   6577.877     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     4358 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.714        .35783E-06** at limit **
   2  Prefactor     6.0157        71.175       -.10905E-04   -.13700E-03
   3  Prefactor     4.5951        4.4798        .17326E-06    .91774E-04
   4  Prefactor     .10000E-03    11.039       -.13896E-06** at limit **
   5  Prefactor     .10000E-03    1.3067       -.94295E-07** at limit **
   6  Prefactor     12.564        19.367       -.47693E-06   -.19069E-04
   7  Prefactor     .10000E-03    71.934        .92196E-06** at limit **
   8  Prefactor     .10000E-03    9.3057        .50371E-07** at limit **
   9  Prefactor     .10000E-03    80.134        .12147E-05** at limit **
  10  Prefactor     13.926        21.714       -.48118E-06   -.20358E-04
  11  Prefactor     35.231        33.917       -.91066E-06   -.14209E-03
  12  norm          2.3066        3.4846        .28505E-05   -.65167E-03
  13  Prefactor     16.652        25.406       -.41197E-06   -.15809E-04
  14  Prefactor     .40402        15.370       -.23370E-05    .46225E-03
  15  Prefactor     31.612        21.989        .58296E-06    .66360E-03
  16  norm          2.6127        1.5607       -.57321E-07    .49946E-03
  17  Prefactor     .10000E-03    2.6980       -.47394E-07** at limit **
  18  Prefactor     .10000E-03    3.7808        .59381E-07** at limit **
  19  Prefactor     7.0597        5.0755       -.10571E-06    .93659E-04
  20  norm          .69084        1.2281        .20568E-06   -.13527E-03
  21  Prefactor     .10000E-03    5.0324        .13196E-06** at limit **
  22  norm          .10000E-03    1.8466        .12803E-06** at limit **
  23  Prefactor     .10000E-03    2.1516        .39173E-07** at limit **
  24  Prefactor     .10000E-03    37.972       -.13741E-05** at limit **
  25  Prefactor     .10000E-03    9.3376        .19465E-07** at limit **
  26  Prefactor     .10000E-03    2.4176        .35673E-07** at limit **
  27  norm          63.262        24.679       -.20222E-06   -.61571E-04
  28  Prefactor     .10000E-03    6.7204        .10978E-07** at limit **
  29  Prefactor     7.3503        9.7594       -.28930E-08   -.21042E-04
  30  Prefactor     19.007        39.031       -.41875E-05   -.22215E-03
  31  Normalizat    .77285        .16360        .13576E-05    .12610E-03
  32  Prefactor     1.1355        .17798       -.10978E-05    .24626E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.01571
  Prefactor  = 4.59509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.564
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 13.9259
  Prefactor  = 35.2307
  norm       = 2.30657
  Prefactor  = 16.6515
  Prefactor  = 0.404017
  Prefactor  = 31.6117
  norm       = 2.61272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.0597
  norm       = 0.690838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 63.2624
  Prefactor  = 0.0001
  Prefactor  = 7.35026
  Prefactor  = 19.0073
  Normalizat = 0.772852
  Prefactor  = 1.13546
 **********
 **   18 **HESSE 
 **********

 FCN=   6577.877     FROM HESSE     STATUS=OK           651 CALLS     5009 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0157        77.813        .16330E-03   -1.5217    
   3  Prefactor     4.5951        4.4681        .15786E-03   -1.5279    
   4  Prefactor     .10000E-03    11.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3418        .18079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.564        19.378        .11298E-03   -1.4999    
   7  Prefactor     .10000E-03    74.590        .42441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.3203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    80.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.926        21.728        .10731E-03   -1.4961    
  11  Prefactor     35.231        34.003        .67508E-04   -1.4520    
  12  norm          2.3066        3.6141        .94442E-03   -1.5404    
  13  Prefactor     16.652        25.398        .98148E-04   -1.4892    
  14  Prefactor     .40402        202.33        .53278E-02   -1.5581    
  15  Prefactor     31.612        22.489        .71236E-04   -1.4583    
  16  norm          2.6127        1.5607        .72733E-04   -1.5385    
  17  Prefactor     .10000E-03    2.7107        .12997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8021        .15399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0597        5.0746        .14687E-03   -1.5177    
  20  norm          .69084        1.1935        .11475E-03   -1.5542    
  21  Prefactor     .10000E-03    5.1579        .35514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.5184        .21354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1565        .11614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    38.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.3903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.4204        .12314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          63.262        24.688        .25226E-03   -1.4116    
  28  Prefactor     .10000E-03    6.7260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.3503        9.7570        .14794E-03   -1.5166    
  30  Prefactor     19.007        39.953        .91821E-04   -1.4836    
  31  Normalizat    .77285        .19598        .24815E-03   -1.0108    
  32  Prefactor     1.1355        .21407        .23933E-03   -.88341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88997e-08
Minuit parameter uncertainties:
  1  0.000219002
  2  43.3404
  3  4.46846
  4  1.55923e-05
  5  6.70083e-06
  6  19.3879
  7  0.000742911
  8  3.01019e-05
  9  0.000985556
  10  21.7399
  11  34.0213
  12  3.61449
  13  25.4146
  14  18.1421
  15  22.4948
  16  1.56071
  17  5.15434e-06
  18  5.88906e-07
  19  5.07487
  20  1.19354
  21  4.50451e-06
  22  6.54736e-05
  23  1.50608e-06
  24  0.000389924
  25  1.30417e-05
  26  1.27915e-06
  27  24.6921
  28  3.32254e-06
  29  9.7591
  30  40.0091
  31  0.196164
  32  0.214231
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  7.060e+00  5.075e+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:  1.135e+00  2.142e-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:  7.729e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.38
Ra Dec: 225.895 47.996
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.03e-05

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) = 6577.59612639
delta logL = 0.280430907194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6577.5690647
delta logL = 0.30749259757

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6577.569     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      279 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0499        7.4244        .13323E-03    .27803E-03
   2  Index         1.7194        .65546        .10861E-01    .34230E-04
   3  Normalizat    .78690        .18343        .24624E-03   -.19252E-04
   4  Prefactor     1.1295        .21113        .24003E-03   -.20129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.04985
  Index      = 1.71935
  Normalizat = 0.786904
  Prefactor  = 1.12953
 **********
 **   18 **HESSE 
 **********

 FCN=   6577.569     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0499        7.4624        .26646E-04   -1.5106    
   2  Index         1.7194        .65888        .43443E-03   -.71568    
   3  Normalizat    .78690        .18361        .98496E-05   -1.0056    
   4  Prefactor     1.1295        .21137        .96013E-05   -.88528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96267e-11
Minuit parameter uncertainties:
  1  7.46312
  2  0.662273
  3  0.18375
  4  0.211525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950683': 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) = 6577.56906469
delta logL = 0.307492609096

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  9.050e+00  7.463e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  1.719e+00  6.623e-01  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:  1.130e+00  2.115e-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:  7.869e-01  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.01
Ra Dec: 225.895 47.996
Photon Index (Free Index): 1.72 +/- 0.66
Photon Flux (Free Index): 1.71e-08 +/- 2.36e-08
Energy Flux (Free Index): 2.62e-05 +/- 3.35e-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/950683/cmap_HighResolution_383184001_383443201_4FGL_J1503.5+4759_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='2.62e-05', photon_flux_error='2.38e-08', dlogl='3.07e-01', energy_flux='1.43e-05', photon_flux2='1.71e-08', job_status='DONE', time_completed='2021-09-10 18:51:24.873922', photon_index_error2='0.66', photon_index2='1.72', ts='6.38', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='3.35e-05', EG='0.77', time_epoch_completed='1631325084.87', return_code='0', job_id='950683', GAL2='1.13', EG2='0.79', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='2.36e-08', ts2='7.01', photon_index='2.22' WHERE bin_id='555' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:51:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 950683: <4FGL_J1503.5+4759_daily_bin555> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin555> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 18:36:14 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:36:16 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:36:16 2021
Terminated at Fri Sep 10 18:51:25 2021
Results reported at Fri Sep 10 18:51:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin555 225.895 47.9959 383184001 383443201 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 :                                   880.30 sec.
    Max Memory :                                 1051 MB
    Average Memory :                             322.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

