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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin1012
RA = 225.895, Dec = 47.9959
tmin = 501638401, tmax = 501897601
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='953549', job_status='RUN', time_executed='2021-09-10 18:46:33.753195', time_epoch_executed='1631324793.75' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953549/ft1_4FGL_J1503.5+4759_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953549/ft2_4FGL_J1503.5+4759_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953549/ft1_4FGL_J1503.5+4759_daily_bin1012.fits outfile=/scratch/kocevski/953549/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1012.fits ra=225.895 dec=47.9959 rad=12.0 tmin=501638401.0 tmax=501897601.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.49
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953549/ft1_filtered_4FGL_J1503.5+4759_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/953549/ft2_4FGL_J1503.5+4759_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/953549/ltcube_501638401_501897601_4FGL_J1503.5+4759_daily_bin1012.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/953549/ft2_4FGL_J1503.5+4759_daily_bin1012.fits
.....................!
real 11.95
user 11.56
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953549/ft1_filtered_4FGL_J1503.5+4759_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/953549/ft2_4FGL_J1503.5+4759_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/953549/ltcube_501638401_501897601_4FGL_J1503.5+4759_daily_bin1012.fits outfile=/scratch/kocevski/953549/expmap_501638401_501897601_4FGL_J1503.5+4759_daily_bin1012.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/953549/ltcube_501638401_501897601_4FGL_J1503.5+4759_daily_bin1012.fits
.....................!
real 189.49
user 185.21
sys 3.91

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/953549/ft1_filtered_4FGL_J1503.5+4759_daily_bin1012.fits scfile=/scratch/kocevski/953549/ft2_4FGL_J1503.5+4759_daily_bin1012.fits outfile=/scratch/kocevski/953549/cmap_501638401_501897601_4FGL_J1503.5+4759_daily_bin1012.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953549/ft1_filtered_4FGL_J1503.5+4759_daily_bin1012.fits scfile=/scratch/kocevski/953549/ft2_4FGL_J1503.5+4759_daily_bin1012.fits outfile=/scratch/kocevski/953549/cmap_HighResolution_501638401_501897601_4FGL_J1503.5+4759_daily_bin1012.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.824       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1892       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.084       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26821       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.512       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10978E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    63.471       1.0000         .10000E-03   10000.    
    12 'norm      '    6.2448       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8490       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.772       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15080E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.3429       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9629       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7051       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .99643       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4725       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .30189       1.0000         .10000E-03   10000.    
    22 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3148       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .41685E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.584       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .22771       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91659       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .94931       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5279.755     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     3744 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.879       -.28450E-06** at limit **
   2  Prefactor     52.899        40.050       -.50120E-05    .45153E-02
   3  Prefactor     2.1824        6.1243       -.47979E-07   -.36869E-04
   4  Prefactor     14.079        4.1119        .53811E-06   -.99865E-03
   5  Prefactor     .26773        4.5729       -.10747E-05   -.13951E-04
   6  Prefactor     42.512        6.4547       -.29482E-06   -.40961E-02
   7  Prefactor     .10000E-03    16.224       -.57891E-07** at limit **
   8  Prefactor     .10000E-03    14.061       -.76939E-06** at limit **
   9  Prefactor     .10000E-03    31.595       -.14379E-05** at limit **
  10  Prefactor     .10000E-03    9.2957        .20170E-06** at limit **
  11  Prefactor     63.477        23.057       -.16637E-05   -.57544E-02
  12  norm          6.2458        3.3882        .10899E-05    .37218E-03
  13  Prefactor     4.8441        9.0221        .26649E-05    .70289E-03
  14  Prefactor     14.742        5.6367        .60539E-06    .37653E-02
  15  Prefactor     .10001E-03    56.880        .20454E-05** at limit **
  16  norm          4.3422        1.9592       -.29718E-06    .74165E-05
  17  Prefactor     8.9660        3.8659       -.60585E-08    .14974E-02
  18  Prefactor     4.6836        11.576       -.10266E-06   -.96664E-03
  19  Prefactor     .98812        8.9400       -.27910E-05   -.16036E-04
  20  norm          1.4732        1.9049       -.11127E-05   -.10424E-03
  21  Prefactor     .31760        35.352       -.94784E-05    .84442E-04
  22  norm          .10000E-03    4.0723       -.60304E-06** at limit **
  23  Prefactor     1.3085        3.9285       -.84474E-06   -.13433E-05
  24  Prefactor     .10018E-03    158.54        .29192E-05** at limit **
  25  Prefactor     11.574        10.480       -.33547E-06    .12487E-03
  26  Prefactor     .10000E-03    3.1210       -.10262E-06** at limit **
  27  norm          .10000E-03    4.8943       -.22182E-06** at limit **
  28  Prefactor     .10000E-03    5.6116        .47411E-07** at limit **
  29  Prefactor     .10000E-03    3.0976       -.15118E-06** at limit **
  30  Prefactor     .12501E-03    7115.4        .17718E-03** at limit **
  31  Normalizat    .91667        .21529        .27560E-06    .39714E-04
  32  Prefactor     .94948        .23724        .66611E-05    .40567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 52.8989
  Prefactor  = 2.18237
  Prefactor  = 14.0795
  Prefactor  = 0.26773
  Prefactor  = 42.5116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.4774
  norm       = 6.24583
  Prefactor  = 4.84414
  Prefactor  = 14.7418
  Prefactor  = 0.000100009
  norm       = 4.34217
  Prefactor  = 8.96603
  Prefactor  = 4.68358
  Prefactor  = 0.988124
  norm       = 1.47319
  Prefactor  = 0.317598
  norm       = 0.0001
  Prefactor  = 1.30853
  Prefactor  = 0.000100183
  Prefactor  = 11.574
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000125014
  Normalizat = 0.916667
  Prefactor  = 0.949478
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.755     FROM HESSE     STATUS=OK           747 CALLS     4491 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     52.899        51.698        .13796E-02   -1.4252    
   3  Prefactor     2.1824        6.7750        .69541E-02   -1.5413    
   4  Prefactor     14.079        25.870        .26682E-02   -1.4957    
   5  Prefactor     .26773        2.1280        .32753E-01   -1.5604    
   6  Prefactor     42.512        28.604        .15371E-02   -1.4403    
   7  Prefactor     .10000E-03    16.273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.592        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.2810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     63.477        41.022        .12592E-02   -1.4113    
  12  norm          6.2458        9.0886        .40159E-02   -1.5208    
  13  Prefactor     4.8441        84.015        .45670E-02   -1.5268    
  14  Prefactor     14.742        16.233        .26053E-02   -1.4940    
  15  Prefactor     .10001E-03    55.952        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3422        1.9698        .48322E-02   -1.5291    
  17  Prefactor     8.9660        11.113        .33470E-02   -1.5109    
  18  Prefactor     4.6836        12.066        .46378E-02   -1.5275    
  19  Prefactor     .98812        8.8402        .13153E-01   -1.5509    
  20  norm          1.4732        2.3465        .88512E-02   -1.5465    
  21  Prefactor     .31760        5.4563        .79383E-01   -1.5595    
  22  norm          .10000E-03    2.1819        .38502E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3085        4.0416        .96049E-02   -1.5479    
  24  Prefactor     .10018E-03    163.04        .10622E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.574        11.239        .29426E-02   -1.5027    
  26  Prefactor     .10000E-03    3.1163        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.8947        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.6114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.0942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .12501E-03    63.855        .15989       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .91667        .18955        .45113E-01   -.95877    
  32  Prefactor     .94948        .20035        .45630E-01   -.94433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35767e-07
Minuit parameter uncertainties:
  1  0.000128479
  2  51.7422
  3  6.77736
  4  25.8901
  5  1.50939
  6  28.6133
  7  0.000114585
  8  2.86559e-06
  9  4.36487e-05
  10  3.98326e-07
  11  41.0398
  12  9.09065
  13  40.4136
  14  16.2375
  15  0.00145291
  16  1.96983
  17  11.116
  18  12.0721
  19  5.91195
  20  2.34668
  21  2.63265
  22  3.2529e-08
  23  4.04245
  24  0.0109502
  25  11.2409
  26  4.27017e-07
  27  1.01649e-07
  28  2.025e-07
  29  3.05814e-07
  30  0.0800169
  31  0.189683
  32  0.200509
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  9.881e-01  5.912e+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:  9.495e-01  2.005e-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:  9.167e-01  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/953549/likelihoodResults_501638401_501897601_4FGL_J1503.5+4759_daily_bin1012.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) = 5279.72032531
delta logL = 0.0343205183517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5279.68297881
delta logL = 0.0716670150077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1002       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7322       1.0000          .0000       10.000    
     3 'Normalizat'    .92220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94119       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5279.683     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      213 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1002        8.4992         .0000        .53761E-02
   2  Index         1.7328        1.0713         .0000       -.54592E-04
   3  Normalizat    .92238        .17385         .0000        .14909E-04
   4  Prefactor     .94095        .19654         .0000        .66895E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10022
  Index      = 1.73277
  Normalizat = 0.922379
  Prefactor  = 0.940949
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.683     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1002        8.2853        .11516E-02   -1.5356    
   2  Index         1.7328        1.0491        .11041E-02   -.71213    
   3  Normalizat    .92238        .20824        .22870E-03   -.95678    
   4  Prefactor     .94095        .23553        .25376E-03   -.94725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84088e-10
Minuit parameter uncertainties:
  1  8.28837
  2  1.06302
  3  0.208426
  4  0.235783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953549': 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) = 5279.68297809
delta logL = 0.0716677378095

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  3.100e+00  8.288e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  1.733e+00  1.063e+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:  9.409e-01  2.358e-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:  9.224e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 225.895 47.996

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/953549/cmap_HighResolution_501638401_501897601_4FGL_J1503.5+4759_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-09-10 19:00:46.010492', job_id='953549', GAL2='0.94', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631325646.01', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='7.17e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1012' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 19:00:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 953549: <4FGL_J1503.5+4759_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin1012> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 18:46:20 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:46:22 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:46:22 2021
Terminated at Fri Sep 10 19:00:46 2021
Results reported at Fri Sep 10 19:00:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin1012 225.895 47.9959 501638401 501897601 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 :                                   848.03 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

