/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 122 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1502.5+5552_daily_bin73
RA = 225.626, Dec = 55.8797
tmin = 258249601, tmax = 258508801
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='939404', job_status='RUN', time_executed='2021-09-10 17:58:35.047260', time_epoch_executed='1631321915.05' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939404

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939404/ft1_4FGL_J1502.5+5552_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939404/ft2_4FGL_J1502.5+5552_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939404/ft1_4FGL_J1502.5+5552_daily_bin73.fits outfile=/scratch/kocevski/939404/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin73.fits ra=225.626 dec=55.8797 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.16
user 0.98
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/939404/ft2_4FGL_J1502.5+5552_daily_bin73.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/939404/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/939404/ft1_filtered_4FGL_J1502.5+5552_daily_bin73.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/939404/ft1_filtered_4FGL_J1502.5+5552_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/939404/ft2_4FGL_J1502.5+5552_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/939404/ltcube_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.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/939404/ft2_4FGL_J1502.5+5552_daily_bin73.fits
.....................!
real 9.33
user 9.01
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939404/ft1_filtered_4FGL_J1502.5+5552_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/939404/ft2_4FGL_J1502.5+5552_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/939404/ltcube_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.fits outfile=/scratch/kocevski/939404/expmap_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.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/939404/ltcube_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.fits
.....................!
real 192.67
user 187.40
sys 4.89

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/939404/ft1_filtered_4FGL_J1502.5+5552_daily_bin73.fits scfile=/scratch/kocevski/939404/ft2_4FGL_J1502.5+5552_daily_bin73.fits outfile=/scratch/kocevski/939404/cmap_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939404/ft1_filtered_4FGL_J1502.5+5552_daily_bin73.fits scfile=/scratch/kocevski/939404/ft2_4FGL_J1502.5+5552_daily_bin73.fits outfile=/scratch/kocevski/939404/cmap_HighResolution_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.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.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/939404/ft1_filtered_4FGL_J1502.5+5552_daily_bin73.fits', '/scratch/kocevski/939404/ft2_4FGL_J1502.5+5552_daily_bin73.fits', expMap='/scratch/kocevski/939404/expmap_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.fits', expCube='/scratch/kocevski/939404/ltcube_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/939404/Model_4FGL_J1502.5+5552_daily_bin73.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/939404/ft1_filtered_4FGL_J1502.5+5552_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/939404/ft2_4FGL_J1502.5+5552_daily_bin73.fits
Exposure map: /scratch/kocevski/939404/expmap_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.fits
Exposure cube: /scratch/kocevski/939404/ltcube_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/939404/Model_4FGL_J1502.5+5552_daily_bin73.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) = 3575.91805253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.1491       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20236E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.338       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15079E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    70.560       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.412       1.0000         .10000E-03   10000.    
    17 'norm      '    .10466E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.508       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.8945       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .83144E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12876       1.0000         .10000E-03   10000.    
    27 'norm      '    20.997       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .83035       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2116       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=   3575.879     FROM MIGRAD    STATUS=CONVERGED   1555 CALLS     5654 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.121        .18142E-02** at limit **
   2  norm          .10000E-03    111.10        .18142E-02** at limit **
   3  norm          6.1477        7.4793        .16190E-03   -.11976E-03
   4  Prefactor     .10000E-03    268.52        .18142E-02** at limit **
   5  Prefactor     .10000E-03    28.367        .18142E-02** at limit **
   6  Prefactor     .10000E-03    40.278        .18142E-02** at limit **
   7  Prefactor     .10000E-03    5.7480        .13970E-02** at limit **
   8  Prefactor     57.475        59.443        .52908E-04   -.17727E-04
   9  Prefactor     10.336        5.0710        .89938E-04    .83997E-04
  10  Prefactor     .10000E-03    187.87        .18142E-02** at limit **
  11  Prefactor     .10000E-03    20.414        .18142E-02** at limit **
  12  Prefactor     70.530        104.01        .47789E-04   -.32591E-04
  13  Prefactor     .10000E-03    29.957        .18142E-02** at limit **
  14  Prefactor     .10000E-03    42.869        .18142E-02** at limit **
  15  Prefactor     .10000E-03    23.584        .18142E-02** at limit **
  16  Prefactor     21.427        24.137        .86559E-04   -.13646E-03
  17  norm          .10000E-03    2.3872        .14084E-02** at limit **
  18  Prefactor     16.508        13.121        .98575E-04    .22835E-04
  19  Prefactor     .10000E-03    2.3851        .90151E-03** at limit **
  20  Prefactor     .10000E-03    3.2072        .10452E-02** at limit **
  21  norm          .10000E-03    2.3594        .89382E-03** at limit **
  22  Prefactor     .10000E-03    18.741        .18142E-02** at limit **
  23  Prefactor     .10000E-03    23.850        .18142E-02** at limit **
  24  norm          2.8923        4.0649        .13222E-03   -.37527E-03
  25  Prefactor     .10684E-03    187.38        .20783    ** at limit **
  26  Prefactor     .22784E-01    20.064        .56158E-01    .43968E-03
  27  norm          21.030        12.445        .87411E-04    .11712E-03
  28  Prefactor     .10000E-03    14.657        .18142E-02** at limit **
  29  Prefactor     .10000E-03    23.123        .18142E-02** at limit **
  30  Prefactor     .10000E-03    5.5098        .13661E-02** at limit **
  31  Normalizat    .83036        .27868        .26325E-03   -.63786E-04
  32  Prefactor     1.2116        .29596        .24920E-03   -.67873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.14773
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 57.475
  Prefactor  = 10.3363
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 70.5298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4269
  norm       = 0.0001
  Prefactor  = 16.5075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.89228
  Prefactor  = 0.000106836
  Prefactor  = 0.022784
  norm       = 21.0298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.830362
  Prefactor  = 1.21164
 **********
 **   18 **HESSE 
 **********

 FCN=   3575.879     FROM HESSE     STATUS=OK           645 CALLS     6299 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    111.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.1477        7.4792        .64759E-05   -1.5212    
   4  Prefactor     .10000E-03    268.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.367        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7484        .27939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     57.475        59.477        .21163E-05   -1.4190    
   9  Prefactor     10.336        5.0709        .35975E-05   -1.5065    
  10  Prefactor     .10000E-03    187.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     70.530        104.01        .95578E-05   -1.4026    
  13  Prefactor     .10000E-03    29.958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.875        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.427        24.134        .34624E-05   -1.4782    
  17  norm          .10000E-03    2.3911        .28169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.508        13.121        .39430E-05   -1.4895    
  19  Prefactor     .10000E-03    2.3851        .18030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2073        .20904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3596        .17876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.8923        4.0658        .52889E-05   -1.5368    
  25  Prefactor     .10684E-03    200.67        .19915       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .22784E-01    17.721        .60428E-01   -1.5678    
  27  norm          21.030        12.395        .34964E-05   -1.4790    
  28  Prefactor     .10000E-03    14.657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    23.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    5.5107        .27322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .83036        .27898        .10530E-04   -.98952    
  32  Prefactor     1.2116        .29619        .49841E-04   -.85974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51454e-09
Minuit parameter uncertainties:
  1  6.12311e-05
  2  8.24515e-07
  3  7.48033
  4  0.00202036
  5  2.40048e-05
  6  0.000317266
  7  3.33708e-05
  8  59.5383
  9  5.07114
  10  0.000644143
  11  2.01074e-06
  12  104.277
  13  5.49162e-05
  14  0.000201448
  15  9.48819e-06
  16  24.145
  17  2.56783e-05
  18  13.1231
  19  2.88889e-07
  20  6.57431e-07
  21  1.56176e-06
  22  2.64474e-06
  23  2.0081e-06
  24  4.06614
  25  0.0743264
  26  1.26843
  27  12.3962
  28  6.70528e-06
  29  2.92851e-05
  30  1.8532e-06
  31  0.279468
  32  0.296601
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.651e+01  1.312e+01  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.212e+00  2.966e-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:  8.304e-01  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.89
Ra Dec: 225.626 55.880
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.16e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/939404/likelihoodResults_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.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) = 3575.85368928
delta logL = 0.0256719656536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3575.85270437
delta logL = 0.0266568691991

Fit tolerance = 1e-08

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

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

 FCN=   3575.853     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      254 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.529        467.00        .22675E-02   -.49465E-04
   2  Index         2.2454        5.9924        .17072        .24850E-04
   3  Normalizat    .83766        .13632        .44102E-01   -.39184E-04
   4  Prefactor     1.2065        .10582        .56462E-01   -.52424E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5292
  Index      = 2.24539
  Normalizat = 0.837658
  Prefactor  = 1.20646
 **********
 **   18 **HESSE 
 **********

 FCN=   3575.853     FROM HESSE     STATUS=OK            29 CALLS      283 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.529        20.542        .90701E-04   -1.4824    
   2  Index         2.2454        .72085        .61113E-02   -.58347    
   3  Normalizat    .83766        .26271        .26221E-03   -.98687    
   4  Prefactor     1.2065        .29350        .24966E-03   -.86133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86433e-12
Minuit parameter uncertainties:
  1  20.5495
  2  0.72448
  3  0.263114
  4  0.293894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939404': 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) = 3575.85269099
delta logL = 0.0266702521644

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.953e+01  2.055e+01  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.245e+00  7.245e-01  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.206e+00  2.939e-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:  8.377e-01  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.94
Ra Dec: 225.626 55.880
Photon Index (Free Index): 2.25 +/- 0.72
Photon Flux (Free Index): 4.55e-08 +/- 4.47e-08
Energy Flux (Free Index): 1.89e-05 +/- 1.98e-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/939404/cmap_HighResolution_258249601_258508801_4FGL_J1502.5+5552_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='5.16e-08', energy_flux2='1.89e-05', photon_flux_error='4.10e-08', dlogl='2.67e-02', energy_flux='1.67e-05', photon_flux2='4.55e-08', job_status='DONE', time_completed='2021-09-10 18:11:37.118364', photon_index_error2='0.72', photon_index2='2.25', ts='3.89', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.98e-05', EG='0.83', time_epoch_completed='1631322697.12', return_code='0', job_id='939404', GAL2='1.21', EG2='0.84', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.47e-08', ts2='3.94', photon_index='2.41' WHERE bin_id='73' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:11:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 939404: <4FGL_J1502.5+5552_daily_bin73> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin73> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 17:56:20 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:56: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 17:56:22 2021
Terminated at Fri Sep 10 18:11:37 2021
Results reported at Fri Sep 10 18:11:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin73 225.626 55.8797 258249601 258508801 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 :                                   783.20 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             278.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

