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


Performing analysis on: 4FGL_J1502.5+5552_daily_bin89
RA = 225.626, Dec = 55.8797
tmin = 262396801, tmax = 262656001
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='939428', job_status='RUN', time_executed='2021-09-10 17:56:34.012929', time_epoch_executed='1631321794.01' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939428

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939428/ft1_4FGL_J1502.5+5552_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939428/ft2_4FGL_J1502.5+5552_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939428/ft1_4FGL_J1502.5+5552_daily_bin89.fits outfile=/scratch/kocevski/939428/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin89.fits ra=225.626 dec=55.8797 rad=12.0 tmin=262396801.0 tmax=262656001.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.40
user 1.24
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/939428/ft2_4FGL_J1502.5+5552_daily_bin89.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/939428/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/939428/ft1_filtered_4FGL_J1502.5+5552_daily_bin89.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 2.94
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/939428/ft1_filtered_4FGL_J1502.5+5552_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/939428/ft2_4FGL_J1502.5+5552_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/939428/ltcube_262396801_262656001_4FGL_J1502.5+5552_daily_bin89.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/939428/ft2_4FGL_J1502.5+5552_daily_bin89.fits
.....................!
real 14.48
user 12.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939428/ft1_filtered_4FGL_J1502.5+5552_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/939428/ft2_4FGL_J1502.5+5552_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/939428/ltcube_262396801_262656001_4FGL_J1502.5+5552_daily_bin89.fits outfile=/scratch/kocevski/939428/expmap_262396801_262656001_4FGL_J1502.5+5552_daily_bin89.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/939428/ltcube_262396801_262656001_4FGL_J1502.5+5552_daily_bin89.fits
.....................!
real 191.14
user 185.51
sys 5.26

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/939428/ft1_filtered_4FGL_J1502.5+5552_daily_bin89.fits scfile=/scratch/kocevski/939428/ft2_4FGL_J1502.5+5552_daily_bin89.fits outfile=/scratch/kocevski/939428/cmap_262396801_262656001_4FGL_J1502.5+5552_daily_bin89.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939428/ft1_filtered_4FGL_J1502.5+5552_daily_bin89.fits scfile=/scratch/kocevski/939428/ft2_4FGL_J1502.5+5552_daily_bin89.fits outfile=/scratch/kocevski/939428/cmap_HighResolution_262396801_262656001_4FGL_J1502.5+5552_daily_bin89.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.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.795       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13400E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    61.630       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23432       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.247       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.924       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7553       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3555       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.766       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1847       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88012       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.251       1.0000         .10000E-03   10000.    
    24 'norm      '    12.750       1.0000         .10000E-03   10000.    
    25 'Prefactor '    90.976       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.560       1.0000         .10000E-03   10000.    
    27 'norm      '    15.155       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    19.924       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3679       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .74808       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=   4867.228     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     4529 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.827        52.718        .42474E-06    .52573E-04
   2  norm          .10000E-03    35.910        .18417E-06** at limit **
   3  norm          .10000E-03    3.0684       -.59941E-06** at limit **
   4  Prefactor     .10001E-03    647.45       -.69595E-05** at limit **
   5  Prefactor     .10000E-03    20.944        .22393E-07** at limit **
   6  Prefactor     61.622        42.833        .51710E-06   -.11450E-04
   7  Prefactor     .10000E-03    1.8166       -.36322E-06** at limit **
   8  Prefactor     .34936        464.78       -.22364E-04    .49848E-05
   9  Prefactor     .10000E-03    3.5840        .13187E-05** at limit **
  10  Prefactor     48.201        56.602        .26099E-05   -.19095E-04
  11  Prefactor     20.915        37.752        .14942E-05   -.86561E-04
  12  Prefactor     .10000E-03    44.018       -.81530E-06** at limit **
  13  Prefactor     9.8400        84.416       -.54754E-05   -.22222E-04
  14  Prefactor     9.3558        18.522        .14968E-06    .56387E-05
  15  Prefactor     .10000E-03    6.4282       -.12719E-06** at limit **
  16  Prefactor     31.766        23.112       -.19848E-06    .43315E-05
  17  norm          2.1841        1.8373       -.69019E-07   -.52186E-04
  18  Prefactor     .96123        46.803       -.81443E-05    .12253E-04
  19  Prefactor     .10000E-03    2.4411       -.61776E-07** at limit **
  20  Prefactor     .10000E-03    6.3191       -.57880E-06** at limit **
  21  norm          .10000E-03    1.4668       -.51966E-07** at limit **
  22  Prefactor     .10000E-03    6.8071       -.22913E-06** at limit **
  23  Prefactor     23.263        26.246       -.41386E-06   -.29872E-04
  24  norm          12.751        5.6003       -.95006E-07   -.38543E-04
  25  Prefactor     90.993        153.17       -.92200E-06    .35869E-05
  26  Prefactor     19.560        19.154       -.11624E-06    .17837E-04
  27  norm          15.160        16.006       -.11364E-06    .10037E-04
  28  Prefactor     .10000E-03    28.899       -.23631E-06** at limit **
  29  Prefactor     19.875        69.498       -.12707E-05   -.67673E-05
  30  Prefactor     .10000E-03    5.2464       -.66026E-06** at limit **
  31  Normalizat    1.3677        .23749        .17823E-05    .13450E-03
  32  Prefactor     .74796        .23967       -.35821E-06    .51317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.8273
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 61.6222
  Prefactor  = 0.0001
  Prefactor  = 0.349356
  Prefactor  = 0.0001
  Prefactor  = 48.201
  Prefactor  = 20.9148
  Prefactor  = 0.0001
  Prefactor  = 9.84004
  Prefactor  = 9.3558
  Prefactor  = 0.0001
  Prefactor  = 31.7662
  norm       = 2.18414
  Prefactor  = 0.961232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.263
  norm       = 12.751
  Prefactor  = 90.9932
  Prefactor  = 19.5603
  norm       = 15.1598
  Prefactor  = 0.0001
  Prefactor  = 19.8755
  Prefactor  = 0.0001
  Normalizat = 1.3677
  Prefactor  = 0.747965
 **********
 **   18 **HESSE 
 **********

 FCN=   4867.228     FROM HESSE     STATUS=OK           665 CALLS     5194 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.827        52.724        .58614E-04   -1.4338    
   2  norm          .10000E-03    35.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    13.856        .23270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    650.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     61.622        42.806        .25556E-03   -1.4136    
   7  Prefactor     .10000E-03    1.8224        .91921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .34936        31.915        .10656       -1.5590    
   9  Prefactor     .10000E-03    3.5983        .25370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.201        56.734        .57729E-04   -1.4318    
  11  Prefactor     20.915        37.656        .87563E-04   -1.4793    
  12  Prefactor     .10000E-03    44.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.8400        84.283        .12830E-03   -1.5080    
  14  Prefactor     9.3558        18.487        .13102E-03   -1.5096    
  15  Prefactor     .10000E-03    6.4302        .17277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.766        23.090        .71092E-04   -1.4580    
  17  norm          2.1841        1.8366        .82464E-04   -1.5412    
  18  Prefactor     .96123        47.248        .47249E-02   -1.5512    
  19  Prefactor     .10000E-03    2.4453        .10645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.3428        .17119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4725        .82524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.8154        .17780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.263        26.260        .83071E-04   -1.4743    
  24  norm          12.751        5.6009        .10268E-03   -1.4994    
  25  Prefactor     90.993        153.75        .42130E-04   -1.3797    
  26  Prefactor     19.560        19.168        .90561E-04   -1.4823    
  27  norm          15.160        16.027        .10289E-03   -1.4929    
  28  Prefactor     .10000E-03    28.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     19.875        69.608        .89732E-04   -1.4816    
  30  Prefactor     .10000E-03    5.2761        .15619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3677        .29029        .23261E-03   -.81568    
  32  Prefactor     .74796        .29117        .32807E-03   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30665e-10
Minuit parameter uncertainties:
  1  52.7761
  2  3.47623e-05
  3  3.60809e-05
  4  0.0053395
  5  1.23774e-05
  6  42.827
  7  7.06146e-06
  8  6.68097
  9  2.50385e-05
  10  56.7972
  11  37.6984
  12  0.000120426
  13  57.7064
  14  18.4979
  15  4.26964e-06
  16  23.096
  17  1.83665
  18  13.4889
  19  5.45345e-07
  20  1.71177e-05
  21  5.91298e-07
  22  6.64707e-06
  23  26.2731
  24  5.6011
  25  154.434
  26  19.1745
  27  16.0316
  28  1.30562e-05
  29  69.895
  30  1.70566e-05
  31  0.290634
  32  0.291763
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  9.612e-01  1.349e+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:  7.480e-01  2.918e-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:  1.368e+00  2.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 225.626 55.880
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/939428/likelihoodResults_262396801_262656001_4FGL_J1502.5+5552_daily_bin89.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) = 4867.2128396
delta logL = 0.0146772098133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4867.21139221
delta logL = 0.0161245970748

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4867.211     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      294 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3455        23.430        .18793E-02    .79440E-03
   2  Index         2.9314        3.1393        .34097E-02   -.81020E-06
   3  Normalizat    1.3593        .26730        .23321E-03   -.34124E-06
   4  Prefactor     .75220        .28346        .32721E-03   -.58023E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34553
  Index      = 2.93137
  Normalizat = 1.35929
  Prefactor  = 0.752198
 **********
 **   18 **HESSE 
 **********

 FCN=   4867.211     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3455        15.371        .37585E-03   -1.5476    
   2  Index         2.9314        2.6348        .13639E-03   -.42654    
   3  Normalizat    1.3593        .26784        .93283E-05   -.81814    
   4  Prefactor     .75220        .28378        .13089E-04   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50725e-13
Minuit parameter uncertainties:
  1  9.09823
  2  2.80988
  3  0.268118
  4  0.284326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939428': 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) = 4867.21139105
delta logL = 0.0161257538248

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.346e+00  9.098e+00  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.931e+00  2.810e+00  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:  7.522e-01  2.843e-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:  1.359e+00  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/939428/cmap_HighResolution_262396801_262656001_4FGL_J1502.5+5552_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.93e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-10 18:11:28.056405', job_id='939428', GAL2='0.75', fit_tolerance='1e-08', EG2='1.36', EG='1.37', time_epoch_completed='1631322688.06', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.61e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='89' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:11:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 939428: <4FGL_J1502.5+5552_daily_bin89> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin89 225.626 55.8797 262396801 262656001 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 :                                   889.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

