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


Performing analysis on: 4FGL_J1502.5+5552_daily_bin710
RA = 225.626, Dec = 55.8797
tmin = 423360001, tmax = 423619201
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='942357', job_status='RUN', time_executed='2021-09-10 18:06:23.477906', time_epoch_executed='1631322383.48' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/942357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/942357/ft1_4FGL_J1502.5+5552_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/942357/ft2_4FGL_J1502.5+5552_daily_bin710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/942357/ft1_4FGL_J1502.5+5552_daily_bin710.fits outfile=/scratch/kocevski/942357/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin710.fits ra=225.626 dec=55.8797 rad=12.0 tmin=423360001.0 tmax=423619201.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 5.69
user 5.37
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/942357/ft2_4FGL_J1502.5+5552_daily_bin710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/942357/ft2_4FGL_J1502.5+5552_daily_bin710.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/942357/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin710.fits evtable="EVENTS" outfile="/scratch/kocevski/942357/ft1_filtered_4FGL_J1502.5+5552_daily_bin710.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/942357/ft1_filtered_4FGL_J1502.5+5552_daily_bin710.fits" evtable="EVENTS" scfile=/scratch/kocevski/942357/ft2_4FGL_J1502.5+5552_daily_bin710.fits sctable="SC_DATA" outfile=/scratch/kocevski/942357/ltcube_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.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/942357/ft2_4FGL_J1502.5+5552_daily_bin710.fits
.....................!
real 15.54
user 15.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/942357/ft1_filtered_4FGL_J1502.5+5552_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/942357/ft2_4FGL_J1502.5+5552_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/942357/ltcube_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.fits outfile=/scratch/kocevski/942357/expmap_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.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/942357/ltcube_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.fits
.....................!
real 192.22
user 186.69
sys 5.18

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1502.5+5552 @ 225.626 55.8797

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/942357/ft1_filtered_4FGL_J1502.5+5552_daily_bin710.fits scfile=/scratch/kocevski/942357/ft2_4FGL_J1502.5+5552_daily_bin710.fits outfile=/scratch/kocevski/942357/cmap_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.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.626 yref=55.8797 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/942357/ft1_filtered_4FGL_J1502.5+5552_daily_bin710.fits scfile=/scratch/kocevski/942357/ft2_4FGL_J1502.5+5552_daily_bin710.fits outfile=/scratch/kocevski/942357/cmap_HighResolution_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.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.626 yref=55.8797 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/942357/ft1_filtered_4FGL_J1502.5+5552_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/942357/ft2_4FGL_J1502.5+5552_daily_bin710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/942357/Model_4FGL_J1502.5+5552_daily_bin710.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/942357/ft1_filtered_4FGL_J1502.5+5552_daily_bin710.fits.....................!
real 28.41
user 27.09
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/942357/ft1_filtered_4FGL_J1502.5+5552_daily_bin710.fits', '/scratch/kocevski/942357/ft2_4FGL_J1502.5+5552_daily_bin710.fits', expMap='/scratch/kocevski/942357/expmap_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.fits', expCube='/scratch/kocevski/942357/ltcube_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/942357/Model_4FGL_J1502.5+5552_daily_bin710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1502.5+5552'

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  2.174e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
350        Scale:  1.250e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/942357/ft1_filtered_4FGL_J1502.5+5552_daily_bin710.fits
Spacecraft file(s): /scratch/kocevski/942357/ft2_4FGL_J1502.5+5552_daily_bin710.fits
Exposure map: /scratch/kocevski/942357/expmap_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.fits
Exposure cube: /scratch/kocevski/942357/ltcube_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/942357/Model_4FGL_J1502.5+5552_daily_bin710.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) = 2466.44734424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47772E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    533.33       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4192       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.083       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.383       1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.032       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.9592       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5204       1.0000         .10000E-03   10000.    
    21 'norm      '    7.4724       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.448       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.842       1.0000         .10000E-03   10000.    
    24 'norm      '    1.9004       1.0000         .10000E-03   10000.    
    25 'Prefactor '    87.673       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    17.914       1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.701       1.0000         .10000E-03   10000.    
    29 'Prefactor '    445.35       1.0000         .10000E-03   10000.    
    30 'Prefactor '    74.264       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .62475       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2745       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2466.427     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4329 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    298.07        .55086E-05** at limit **
   2  norm          .10000E-03    59.475        .35006E-06** at limit **
   3  norm          .10000E-03    5.0955       -.91566E-07** at limit **
   4  Prefactor     533.30        607.60        .86784E-06   -.56355E-06
   5  Prefactor     .10000E-03    96.583       -.19624E-07** at limit **
   6  Prefactor     .10000E-03    27.158        .86977E-06** at limit **
   7  Prefactor     2.4187        8.0493        .21216E-05   -.11634E-04
   8  Prefactor     .10000E-03    68.064       -.11813E-06** at limit **
   9  Prefactor     8.3297        5.7869        .18889E-06   -.13338E-04
  10  Prefactor     43.083        43.335        .21022E-06   -.28788E-05
  11  Prefactor     10.384        74.725       -.10326E-06   -.19185E-05
  12  Prefactor     72.004        108.25        .18259E-05   -.12995E-06
  13  Prefactor     .10000E-03    22.962       -.83121E-06** at limit **
  14  Prefactor     .10000E-03    14.504       -.34603E-06** at limit **
  15  Prefactor     .10000E-03    7.3408       -.69242E-09** at limit **
  16  Prefactor     .10000E-03    95.596       -.16961E-06** at limit **
  17  norm          9.9561        4.8797        .93693E-07    .82081E-06
  18  Prefactor     .10000E-03    10.582       -.16397E-07** at limit **
  19  Prefactor     .10000E-03    4.8244       -.17531E-07** at limit **
  20  Prefactor     5.5230        14.313        .26318E-06   -.31657E-05
  21  norm          7.4733        11.254        .11259E-06   -.46577E-06
  22  Prefactor     11.450        15.928        .11047E-06   -.14794E-05
  23  Prefactor     21.840        38.130        .25703E-06   -.55283E-06
  24  norm          1.9006        3.1738        .18818E-07   -.85278E-05
  25  Prefactor     87.709        148.70       -.20705E-05   -.20497E-05
  26  Prefactor     .10000E-03    15.813        .44669E-06** at limit **
  27  norm          17.919        32.373       -.19291E-05   -.15640E-04
  28  Prefactor     20.556        217.51        .18945E-04   -.19029E-05
  29  Prefactor     445.51        460.89       -.47679E-05   -.46155E-06
  30  Prefactor     74.261        71.669        .32204E-06   -.30624E-05
  31  Normalizat    .62461        .28093       -.10840E-05   -.19659E-04
  32  Prefactor     1.2743        .31000       -.31903E-06   -.15675E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 533.302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.41875
  Prefactor  = 0.0001
  Prefactor  = 8.32973
  Prefactor  = 43.0827
  Prefactor  = 10.3845
  Prefactor  = 72.0043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.95609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.52303
  norm       = 7.47329
  Prefactor  = 11.4499
  Prefactor  = 21.84
  norm       = 1.90055
  Prefactor  = 87.709
  Prefactor  = 0.0001
  norm       = 17.919
  Prefactor  = 20.5559
  Prefactor  = 445.514
  Prefactor  = 74.2612
  Normalizat = 0.624614
  Prefactor  = 1.27434
 **********
 **   18 **HESSE 
 **********

 FCN=   2466.427     FROM HESSE     STATUS=OK           653 CALLS     4982 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    302.82        .21180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    59.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.1591        .10937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     533.30        607.73        .89009E-04   -1.1047    
   5  Prefactor     .10000E-03    96.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4187        8.0575        .12326E-02   -1.5397    
   8  Prefactor     .10000E-03    68.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.3297        5.7689        .84857E-04   -1.5131    
  10  Prefactor     43.083        43.395        .61076E-04   -1.4394    
  11  Prefactor     10.384        73.820        .12434E-03   -1.5063    
  12  Prefactor     72.004        108.39        .47302E-04   -1.4009    
  13  Prefactor     .10000E-03    22.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.3443        .13143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    97.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.9561        4.8745        .72674E-04   -1.5077    
  18  Prefactor     .10000E-03    10.594        .15774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8278        .10654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5230        14.375        .17100E-03   -1.5238    
  21  norm          7.4733        11.249        .14671E-03   -1.5161    
  22  Prefactor     11.450        15.917        .11840E-03   -1.5031    
  23  Prefactor     21.840        38.224        .85704E-04   -1.4773    
  24  norm          1.9006        3.1475        .11026E-03   -1.5432    
  25  Prefactor     87.709        148.68        .42909E-04   -1.3832    
  26  Prefactor     .10000E-03    15.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          17.919        32.379        .94629E-04   -1.4861    
  28  Prefactor     20.556        217.86        .88032E-04   -1.4801    
  29  Prefactor     445.51        460.89        .96955E-04   -1.1455    
  30  Prefactor     74.261        71.710        .46591E-04   -1.3982    
  31  Normalizat    .62461        .33037        .28931E-03   -1.0695    
  32  Prefactor     1.2743        .36875        .24549E-03   -.84073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72498e-10
Minuit parameter uncertainties:
  1  5.01135e-05
  2  1.71996e-06
  3  2.59551e-08
  4  615.392
  5  2.5529e-05
  6  5.80926e-06
  7  8.06107
  8  4.18776e-07
  9  5.76931
  10  43.4273
  11  55.4715
  12  108.687
  13  2.12355e-06
  14  1.24983e-05
  15  9.80267e-07
  16  5.5448e-05
  17  4.87472
  18  6.91064e-07
  19  6.71284e-08
  20  14.3838
  21  11.2526
  22  15.9226
  23  38.2669
  24  3.14775
  25  149.322
  26  7.22966e-06
  27  32.4104
  28  134.471
  29  464.811
  30  71.7935
  31  0.331423
  32  0.369501
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  6.911e-07  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
350        Scale:  1.250e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.274e+00  3.695e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  6.246e-01  3.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 225.626 55.880
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/942357/likelihoodResults_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.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) = 2466.4276167
delta logL = -0.000447757558959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2466.42716887
delta logL = 7.28305167286e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3881       1.0000          .0000       10.000    
     3 'Normalizat'    .62461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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=   2466.427     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      249 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10260E-03    7.4288        .16108E-01** at limit **
   2  Index         2.3039        5.9711        .50000        .15248E-04
   3  Normalizat    .62462        .51159E-02    .28930E-03    .11494E-04
   4  Prefactor     1.2743        .60386E-02    .24549E-03    .85672E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001026
  Index      = 2.30392
  Normalizat = 0.624615
  Prefactor  = 1.27434
 **********
 **   18 **HESSE 
 **********

 FCN=   2466.427     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10260E-03    134.14        .16512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3039        6.3310        .50000       -.56951    
   3  Normalizat    .62462        .21975E-01    .11572E-04   -1.0695    
   4  Prefactor     1.2743        .25939E-01    .98198E-05   -.84073    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.19143e-09
Minuit parameter uncertainties:
  1  0.0374368
  2  460.579
  3  0.0219757
  4  0.0259393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/942357': 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) = 2466.42716863
delta logL = 3.13722921419e-07

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.026e-04  3.744e-02  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.304e+00  4.606e+02  0.000e+00  1.000e+01 (-1.000e+00)
350        Scale:  1.250e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.274e+00  2.594e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  6.246e-01  2.198e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.626 55.880

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/942357/cmap_HighResolution_423360001_423619201_4FGL_J1502.5+5552_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-10 18:19:43.007189', job_id='942357', GAL2='1.27', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1631323183.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='3.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='710' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:19:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 942357: <4FGL_J1502.5+5552_daily_bin710> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin710> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 18:06:12 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:06:13 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:06:13 2021
Terminated at Fri Sep 10 18:19:43 2021
Results reported at Fri Sep 10 18:19:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin710 225.626 55.8797 423360001 423619201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1502.5+5552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   629.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            811 sec.

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

