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


Performing analysis on: 4FGL_J1359.1+5544_daily_bin2
RA = 209.785, Dec = 55.7479
tmin = 239846401, tmax = 240105601
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='75541', job_status='RUN', time_executed='2021-09-08 18:31:36.074561', time_epoch_executed='1631151096.07' WHERE source_name='4FGL J1359.1+5544' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75541/ft1_4FGL_J1359.1+5544_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75541/ft2_4FGL_J1359.1+5544_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75541/ft1_4FGL_J1359.1+5544_daily_bin2.fits outfile=/scratch/kocevski/75541/ft1_filteredMKT_4FGL_J1359.1+5544_daily_bin2.fits ra=209.785 dec=55.7479 rad=12.0 tmin=239846401.0 tmax=240105601.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.43
user 1.26
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/75541/ft2_4FGL_J1359.1+5544_daily_bin2.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75541/ft2_4FGL_J1359.1+5544_daily_bin2.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/75541/ft1_filteredMKT_4FGL_J1359.1+5544_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/75541/ft1_filtered_4FGL_J1359.1+5544_daily_bin2.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/75541/ft1_filtered_4FGL_J1359.1+5544_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/75541/ft2_4FGL_J1359.1+5544_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/75541/ltcube_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.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/75541/ft2_4FGL_J1359.1+5544_daily_bin2.fits
.....................!
real 12.66
user 12.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75541/ft1_filtered_4FGL_J1359.1+5544_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/75541/ft2_4FGL_J1359.1+5544_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/75541/ltcube_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.fits outfile=/scratch/kocevski/75541/expmap_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.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/75541/ltcube_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.fits
.....................!
real 193.68
user 187.34
sys 5.84

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

Setting source of interest to:
4FGL J1359.1+5544 @ 209.785 55.7479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/75541/ft1_filtered_4FGL_J1359.1+5544_daily_bin2.fits scfile=/scratch/kocevski/75541/ft2_4FGL_J1359.1+5544_daily_bin2.fits outfile=/scratch/kocevski/75541/cmap_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.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=209.785 yref=55.7479 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75541/ft1_filtered_4FGL_J1359.1+5544_daily_bin2.fits scfile=/scratch/kocevski/75541/ft2_4FGL_J1359.1+5544_daily_bin2.fits outfile=/scratch/kocevski/75541/cmap_HighResolution_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.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=209.785 yref=55.7479 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/75541/ft1_filtered_4FGL_J1359.1+5544_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/75541/ft2_4FGL_J1359.1+5544_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75541/Model_4FGL_J1359.1+5544_daily_bin2.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/75541/ft1_filtered_4FGL_J1359.1+5544_daily_bin2.fits.....................!
real 40.16
user 38.67
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75541/ft1_filtered_4FGL_J1359.1+5544_daily_bin2.fits', '/scratch/kocevski/75541/ft2_4FGL_J1359.1+5544_daily_bin2.fits', expMap='/scratch/kocevski/75541/expmap_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.fits', expCube='/scratch/kocevski/75541/ltcube_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75541/Model_4FGL_J1359.1+5544_daily_bin2.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.1+5544'

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  2.033e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.361e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  7.465e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/75541/ft1_filtered_4FGL_J1359.1+5544_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/75541/ft2_4FGL_J1359.1+5544_daily_bin2.fits
Exposure map: /scratch/kocevski/75541/expmap_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.fits
Exposure cube: /scratch/kocevski/75541/ltcube_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75541/Model_4FGL_J1359.1+5544_daily_bin2.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) = 4337.52655081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5379       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10944E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .30201E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.287       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.640       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.611       1.0000         .10000E-03   10000.    
    10 'norm      '    24.966       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11921E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    112.26       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3387       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    127.45       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .42486E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6579       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.965       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.349       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    29.054       1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.500       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    8.0971       1.0000         .10000E-03   10000.    
    32 'norm      '    4.1495       1.0000         .10000E-03   10000.    
    33 'Prefactor '    6.2765       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .45756E-02   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .87472       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .84907       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4337.505     FROM MIGRAD    STATUS=CONVERGED   1031 CALLS     5371 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0670        .87178E-07** at limit **
   2  norm          2.5380        2.1256        .10225E-07    .21315E-03
   3  norm          .10000E-03    1.7740       -.52455E-07** at limit **
   4  Prefactor     .10000E-03    50.055       -.56383E-05** at limit **
   5  Prefactor     .10004E-03    6.5210       -.15052E-05** at limit **
   6  norm          .13661E-01    2.8123       -.29853E-05   -.90772E-03
   7  Prefactor     24.381        46.391        .70633E-04    .24366E-03
   8  Prefactor     30.650        32.569       -.16073E-05    .11963E-03
   9  Prefactor     29.592        41.110       -.44799E-04    .70568E-04
  10  norm          24.968        9.5389       -.27129E-06    .39247E-03
  11  Prefactor     .10000E-03    48.215       -.10265E-04** at limit **
  12  Prefactor     .10001E-03    4.5758        .25627E-05** at limit **
  13  Prefactor     112.26        68.579       -.14642E-05    .12641E-04
  14  Prefactor     .10000E-03    15.606        .12524E-05** at limit **
  15  norm          3.3386        2.0150        .23147E-06   -.84600E-04
  16  norm          .10000E-03    34.366        .75920E-05** at limit **
  17  norm          .10000E-03    2.2518       -.48726E-07** at limit **
  18  Prefactor     127.41        68.969       -.24375E-04   -.15797E-03
  19  Prefactor     .10000E-03    317.04        .18591E-05** at limit **
  20  Prefactor     .10000E-03    16.645        .65464E-05** at limit **
  21  Prefactor     .10000E-03    18.951       -.98503E-06** at limit **
  22  Prefactor     3.6580        4.9980       -.24112E-06   -.19055E-03
  23  Prefactor     10.966        17.380        .36907E-06   -.13098E-04
  24  Prefactor     .10000E-03    1.7905       -.15648E-06** at limit **
  25  Prefactor     .10000E-03    10.754       -.33682E-06** at limit **
  26  Prefactor     15.338        24.909        .35594E-05    .14385E-04
  27  Prefactor     .10000E-03    34.898        .59177E-05** at limit **
  28  Prefactor     29.064        38.077        .15724E-05    .26359E-04
  29  Prefactor     10.500        10.581        .38262E-06    .56053E-03
  30  Prefactor     .10000E-03    15.369       -.46774E-05** at limit **
  31  Prefactor     8.0959        19.444        .69794E-06   -.22085E-04
  32  norm          4.1496        2.0578       -.90347E-07    .90687E-04
  33  Prefactor     6.2537        13.905        .65377E-06    .20245E-03
  34  Prefactor     .10005E-03    11.192       -.17966E-05** at limit **
  35  Normalizat    .87476        .20848       -.18512E-05    .39901E-03
  36  Prefactor     .84900        .22757        .36886E-05    .11026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.53796
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  norm       = 0.0136611
  Prefactor  = 24.3813
  Prefactor  = 30.6504
  Prefactor  = 29.5919
  norm       = 24.968
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 112.263
  Prefactor  = 0.000100002
  norm       = 3.33858
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 127.407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65804
  Prefactor  = 10.9655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3384
  Prefactor  = 0.0001
  Prefactor  = 29.0636
  Prefactor  = 10.5001
  Prefactor  = 0.0001
  Prefactor  = 8.09593
  norm       = 4.14961
  Prefactor  = 6.25369
  Prefactor  = 0.000100051
  Normalizat = 0.874756
  Prefactor  = 0.849004
 **********
 **   18 **HESSE 
 **********

 FCN=   4337.505     FROM HESSE     STATUS=OK           813 CALLS     6184 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1121        .12964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5380        2.1164        .85183E-04   -1.5389    
   3  norm          .10000E-03    1.8376        .17122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    50.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10004E-03    23.042        .32551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .13661E-01    4.5231        .39276E-01   -1.5685    
   7  Prefactor     24.381        46.875        .81281E-04   -1.4720    
   8  Prefactor     30.650        32.621        .72383E-04   -1.4600    
   9  Prefactor     29.592        41.001        .73627E-04   -1.4619    
  10  norm          24.968        9.5490        .80171E-04   -1.4708    
  11  Prefactor     .10000E-03    48.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    11.367        .26863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     112.26        68.841        .37966E-04   -1.3585    
  14  Prefactor     .10000E-03    15.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3386        2.0109        .69375E-04   -1.5343    
  16  norm          .10000E-03    34.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2664        .96459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     127.41        68.715        .17830E-03   -1.3446    
  19  Prefactor     .10000E-03    317.05        .21236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.6580        4.9830        .16489E-03   -1.5325    
  23  Prefactor     10.966        17.367        .12099E-03   -1.5046    
  24  Prefactor     .10000E-03    1.8226        .17121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.338        24.855        .10223E-03   -1.4924    
  27  Prefactor     .10000E-03    34.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     29.064        38.067        .74329E-04   -1.4629    
  29  Prefactor     10.500        10.582        .61824E-03   -1.5060    
  30  Prefactor     .10000E-03    15.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     8.0959        19.410        .14090E-03   -1.5139    
  32  norm          4.1496        2.0542        .62244E-04   -1.5301    
  33  Prefactor     6.2537        12.686        .16023E-03   -1.5208    
  34  Prefactor     .10005E-03    45.446        .37554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .87476        .24806        .23817E-03   -.97353    
  36  Prefactor     .84900        .27328        .28296E-03   -.97946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29237e-09
Minuit parameter uncertainties:
  1  1.2476e-06
  2  2.11651
  3  6.04337e-06
  4  1.23586e-05
  5  0.00181439
  6  0.495369
  7  46.9459
  8  32.6401
  9  41.0404
  10  9.54956
  11  2.67082e-05
  12  0.000699156
  13  68.8899
  14  0.000360089
  15  2.01096
  16  7.47694e-07
  17  1.52368e-06
  18  68.7579
  19  5.2691e-05
  20  8.96503e-06
  21  8.60498e-06
  22  4.98361
  23  17.3751
  24  2.16238e-05
  25  1.6017e-05
  26  24.8712
  27  4.57981e-05
  28  38.099
  29  10.584
  30  2.83801e-05
  31  19.4247
  32  2.05421
  33  12.6912
  34  0.0030567
  35  0.248387
  36  0.273721
Done.

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

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  1.000e-04  1.524e-06  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.361e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  7.465e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  8.490e-01  2.737e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  8.748e-01  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.785 55.748
Photon Flux Upper Limit: 6.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75541/likelihoodResults_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.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) = 4337.50747647
delta logL = -0.00208831872806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4337.50538866
delta logL = -5.05187927047e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3720       1.0000          .0000       5.0000    
     3 'Normalizat'    .87499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84875       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4337.505     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      195 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7021        .90712E-02** at limit **
   2  alpha         2.3829        3.5763        .41220       -.24945E-04
   3  Normalizat    .87475        .19037        .44581E-01    .11084E-04
   4  Prefactor     .84901        .22424        .63973E-01    .12616E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.38286
  Normalizat = 0.874751
  Prefactor  = 0.849009
 **********
 **   18 **HESSE 
 **********

 FCN=   4337.505     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2959        .96902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3829        3.5250        .50000       -.46872E-01
   3  Normalizat    .87475        .22757        .23817E-03   -.97353    
   4  Prefactor     .84901        .26786        .28296E-03   -.97946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32153e-10
Minuit parameter uncertainties:
  1  6.46326e-06
  2  2.50242
  3  0.227815
  4  0.268272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75541': 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) = 4337.50538794
delta logL = 2.14057763515e-07

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  1.000e-04  6.463e-06  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.383e+00  2.502e+00  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  7.465e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  8.490e-01  2.683e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  8.748e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.785 55.748

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/75541/cmap_HighResolution_239846401_240105601_4FGL_J1359.1+5544_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-05', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2021-09-08 18:46:40.857651', job_id='75541', GAL2='0.85', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631152000.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='2' AND source_name='4FGL J1359.1+5544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:46:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 75541: <4FGL_J1359.1+5544_daily_bin2> in cluster <slac> Done

Job <4FGL_J1359.1+5544_daily_bin2> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 18:30:48 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:30:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 18:30:50 2021
Terminated at Wed Sep  8 18:46:41 2021
Results reported at Wed Sep  8 18:46:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.1+5544_daily_bin2 209.785 55.7479 239846401 240105601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.1+5544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   903.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             307.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

