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


Performing analysis on: 4FGL_J1359.1+5544_daily_bin38
RA = 209.785, Dec = 55.7479
tmin = 249177601, tmax = 249436801
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='75597', job_status='RUN', time_executed='2021-09-08 18:33:26.510930', time_epoch_executed='1631151206.51' WHERE source_name='4FGL J1359.1+5544' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75597/ft1_4FGL_J1359.1+5544_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75597/ft2_4FGL_J1359.1+5544_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75597/ft1_4FGL_J1359.1+5544_daily_bin38.fits outfile=/scratch/kocevski/75597/ft1_filteredMKT_4FGL_J1359.1+5544_daily_bin38.fits ra=209.785 dec=55.7479 rad=12.0 tmin=249177601.0 tmax=249436801.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.42
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75597/ft2_4FGL_J1359.1+5544_daily_bin38.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/75597/ft1_filteredMKT_4FGL_J1359.1+5544_daily_bin38.fits evtable="EVENTS" outfile="/scratch/kocevski/75597/ft1_filtered_4FGL_J1359.1+5544_daily_bin38.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75597/ft1_filtered_4FGL_J1359.1+5544_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/75597/ft2_4FGL_J1359.1+5544_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/75597/ltcube_249177601_249436801_4FGL_J1359.1+5544_daily_bin38.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/75597/ft2_4FGL_J1359.1+5544_daily_bin38.fits
.....................!
real 12.92
user 12.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75597/ft1_filtered_4FGL_J1359.1+5544_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/75597/ft2_4FGL_J1359.1+5544_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/75597/ltcube_249177601_249436801_4FGL_J1359.1+5544_daily_bin38.fits outfile=/scratch/kocevski/75597/expmap_249177601_249436801_4FGL_J1359.1+5544_daily_bin38.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/75597/ltcube_249177601_249436801_4FGL_J1359.1+5544_daily_bin38.fits
.....................!
real 191.80
user 186.22
sys 5.19

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/75597/ft1_filtered_4FGL_J1359.1+5544_daily_bin38.fits scfile=/scratch/kocevski/75597/ft2_4FGL_J1359.1+5544_daily_bin38.fits outfile=/scratch/kocevski/75597/cmap_249177601_249436801_4FGL_J1359.1+5544_daily_bin38.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75597/ft1_filtered_4FGL_J1359.1+5544_daily_bin38.fits scfile=/scratch/kocevski/75597/ft2_4FGL_J1359.1+5544_daily_bin38.fits outfile=/scratch/kocevski/75597/cmap_HighResolution_249177601_249436801_4FGL_J1359.1+5544_daily_bin38.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75597/ft1_filtered_4FGL_J1359.1+5544_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/75597/ft2_4FGL_J1359.1+5544_daily_bin38.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75597/Model_4FGL_J1359.1+5544_daily_bin38.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/75597/ft1_filtered_4FGL_J1359.1+5544_daily_bin38.fits.....................!
real 40.06
user 38.74
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75597/ft1_filtered_4FGL_J1359.1+5544_daily_bin38.fits', '/scratch/kocevski/75597/ft2_4FGL_J1359.1+5544_daily_bin38.fits', expMap='/scratch/kocevski/75597/expmap_249177601_249436801_4FGL_J1359.1+5544_daily_bin38.fits', expCube='/scratch/kocevski/75597/ltcube_249177601_249436801_4FGL_J1359.1+5544_daily_bin38.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75597/Model_4FGL_J1359.1+5544_daily_bin38.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/75597/ft1_filtered_4FGL_J1359.1+5544_daily_bin38.fits
Spacecraft file(s): /scratch/kocevski/75597/ft2_4FGL_J1359.1+5544_daily_bin38.fits
Exposure map: /scratch/kocevski/75597/expmap_249177601_249436801_4FGL_J1359.1+5544_daily_bin38.fits
Exposure cube: /scratch/kocevski/75597/ltcube_249177601_249436801_4FGL_J1359.1+5544_daily_bin38.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75597/Model_4FGL_J1359.1+5544_daily_bin38.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) = 4457.33977616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5648       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8407       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2437       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2410       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3969       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.692       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5424       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .70306       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74114       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.521       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50981E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .66210E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.781       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    12.776       1.0000         .10000E-03   10000.    
    32 'norm      '    .10423E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .79797       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .23403E-02   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .92595       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0187       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4457.329     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     4539 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5637        1.0922        .27846E-06    .97527E-04
   2  norm          2.8401        3.0207       -.54661E-06    .38532E-04
   3  norm          2.2434        2.0280       -.61527E-07   -.62701E-04
   4  Prefactor     .10058E-03    18.520       -.21080E-04** at limit **
   5  Prefactor     2.2385        1.0591        .68154E-06    .60365E-04
   6  norm          3.3956        5.2440       -.48357E-05    .10773E-03
   7  Prefactor     21.687        1.1221       -.27161E-06    .17328E-03
   8  Prefactor     4.5680        3.3457       -.56679E-06   -.56589E-03
   9  Prefactor     .10010E-03    16.743        .15993E-04** at limit **
  10  norm          .69646        4.9589       -.14790E-05    .36237E-03
  11  Prefactor     .10012E-03    11.566       -.19029E-05** at limit **
  12  Prefactor     .73997        1.8763        .10966E-04    .17181E-02
  13  Prefactor     .10209E-03    14.792        .86091E-05** at limit **
  14  Prefactor     .10000E-03    12.111       -.68308E-05** at limit **
  15  norm          .10000E-03    .69313        .69760E-07** at limit **
  16  norm          .10490E-03    17.464       -.20457E-04** at limit **
  17  norm          15.521        6.4175       -.84375E-05   -.40227E-02
  18  Prefactor     .10004E-03    13.060       -.64890E-05** at limit **
  19  Prefactor     .10235E-03    3.4781       -.28727E-05** at limit **
  20  Prefactor     .10356E-03    113.16        .25022E-04** at limit **
  21  Prefactor     .10192E-03    476.28       -.56891E-04** at limit **
  22  Prefactor     .10000E-03    2.9529       -.60020E-06** at limit **
  23  Prefactor     .10000E-03    5.1861       -.45419E-06** at limit **
  24  Prefactor     .10000E-03    1.1834        .15024E-06** at limit **
  25  Prefactor     .10202E-03    14.677        .83353E-05** at limit **
  26  Prefactor     37.784        1.0541       -.10372E-06    .27634E-03
  27  Prefactor     .10012E-03    18.585        .14578E-04** at limit **
  28  Prefactor     .10000E-03    11.591        .63680E-05** at limit **
  29  Prefactor     .10000E-03    5.8135       -.17477E-05** at limit **
  30  Prefactor     .10000E-03    5.9585        .15985E-05** at limit **
  31  Prefactor     12.797        2.4320        .14058E-05   -.23334E-02
  32  norm          .10000E-03    2.3895       -.89843E-06** at limit **
  33  Prefactor     .80045        1.2305        .23131E-05   -.87103E-04
  34  Prefactor     .10540E-03    7.3021       -.15988E-04** at limit **
  35  Normalizat    .92605        .22216        .86938E-05    .24396E-03
  36  Prefactor     1.0189        .26327       -.76772E-06    .26442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.56374
  norm       = 2.84008
  norm       = 2.24344
  Prefactor  = 0.000100584
  Prefactor  = 2.23855
  norm       = 3.39565
  Prefactor  = 21.6872
  Prefactor  = 4.568
  Prefactor  = 0.000100097
  norm       = 0.696461
  Prefactor  = 0.000100116
  Prefactor  = 0.739969
  Prefactor  = 0.000102094
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.000104902
  norm       = 15.5206
  Prefactor  = 0.000100043
  Prefactor  = 0.000102352
  Prefactor  = 0.000103564
  Prefactor  = 0.000101923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010202
  Prefactor  = 37.7839
  Prefactor  = 0.000100124
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.7974
  norm       = 0.0001
  Prefactor  = 0.800454
  Prefactor  = 0.000105401
  Normalizat = 0.926052
  Prefactor  = 1.0189
 **********
 **   18 **HESSE 
 **********

 FCN=   4457.329     FROM HESSE     STATUS=OK           909 CALLS     5448 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5637        9.4196        .34243E-02   -1.5123    
   2  norm          2.8401        3.3454        .60314E-02   -1.5371    
   3  norm          2.2434        2.0324        .68590E-02   -1.5408    
   4  Prefactor     .10058E-03    21.744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2385        10.489        .68636E-02   -1.5409    
   6  norm          3.3956        5.8280        .54879E-02   -1.5339    
   7  Prefactor     21.687        47.103        .21500E-02   -1.4776    
   8  Prefactor     4.5680        35.672        .47222E-02   -1.5280    
   9  Prefactor     .10010E-03    27.350        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .69646        9.7206        .12074E-01   -1.5541    
  11  Prefactor     .10012E-03    26.122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .73997        5.8426        .47590E-01   -1.5536    
  13  Prefactor     .10209E-03    49.832        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.136        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .67018        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10490E-03    55.971        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.521        6.7101        .25415E-02   -1.4920    
  18  Prefactor     .10004E-03    52.511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10235E-03    499.54        .10574E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10356E-03    123.57        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10192E-03    31.973        .12800       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.9093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.1835        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.1728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10202E-03    48.314        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     37.784        28.248        .16301E-02   -1.4478    
  27  Prefactor     .10012E-03    19.232        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.8457        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    5.9940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     12.797        19.310        .28017E-02   -1.4992    
  32  norm          .10000E-03    1.4048        .27830E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .80045        8.3653        .94764E-01   -1.5529    
  34  Prefactor     .10540E-03    6.0626        .84823E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .92605        .20232        .45232E-01   -.95551    
  36  Prefactor     1.0189        .22257        .42272E-01   -.92102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00246e-07
Minuit parameter uncertainties:
  1  9.42119
  2  3.34557
  3  2.03249
  4  0.00712735
  5  9.69363
  6  5.82899
  7  47.1839
  8  25.5513
  9  0.00325508
  10  5.2045
  11  0.00347564
  12  4.15882
  13  0.0204465
  14  0.000451475
  15  3.43076e-06
  16  0.0331608
  17  6.71039
  18  0.00299963
  19  0.0691385
  20  0.04206
  21  0.0156913
  22  1.3442e-05
  23  3.63129e-05
  24  1.14672e-05
  25  0.0197724
  26  28.2582
  27  0.00309043
  28  0.000350032
  29  7.39513e-05
  30  0.000147873
  31  19.3198
  32  2.7808e-05
  33  5.17594
  34  0.0114459
  35  0.202484
  36  0.222774
Done.

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

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  1.552e+01  6.710e+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

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.019e+00  2.228e-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:  9.261e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.53
Ra Dec: 209.785 55.748
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 4.49e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 1.52e-05

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) = 4457.2149425
delta logL = 0.113726854021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4457.21095023
delta logL = 0.117719123191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.648       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5747       1.0000          .0000       5.0000    
     3 'Normalizat'    .90642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0343       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=   4457.211     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      229 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.648        103.79        .27106E-02    .67690E-03
   2  alpha         2.5748        3.7746        .19671        .38948E-04
   3  Normalizat    .90650        .13599        .44984E-01    .65554E-05
   4  Prefactor     1.0342        .13649        .40930E-01    .77367E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6477
  alpha      = 2.57477
  Normalizat = 0.906504
  Prefactor  = 1.0342
 **********
 **   18 **HESSE 
 **********

 FCN=   4457.211     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.648        7.4900        .97314E-04   -1.4969    
   2  alpha         2.5748        .45736        .82448E-02    .29914E-01
   3  Normalizat    .90650        .22542        .22982E-03   -.96232    
   4  Prefactor     1.0342        .26542        .25821E-03   -.91598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34339e-10
Minuit parameter uncertainties:
  1  7.49054
  2  0.459952
  3  0.225656
  4  0.265761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75597': 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) = 4457.21095008
delta logL = 0.117719272261

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  1.365e+01  7.491e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.575e+00  4.600e-01  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:  1.034e+00  2.658e-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:  9.065e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.75
Ra Dec: 209.785 55.748
Photon Index (Free Index): 2.57 +/- 0.46
Photon Flux (Free Index): 1.20e-07 +/- 5.73e-08
Energy Flux (Free Index): 3.33e-05 +/- 1.44e-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/75597/cmap_HighResolution_249177601_249436801_4FGL_J1359.1+5544_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='3.33e-05', photon_flux_error='4.49e-08', dlogl='1.18e-01', energy_flux='3.51e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-08 18:45:55.401745', photon_index_error2='0.46', photon_index2='2.57', ts='11.53', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.93', time_epoch_completed='1631151955.4', return_code='0', job_id='75597', GAL2='1.03', EG2='0.91', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='5.73e-08', ts2='11.75', photon_index='2.36' WHERE bin_id='38' AND source_name='4FGL J1359.1+5544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:45:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 75597: <4FGL_J1359.1+5544_daily_bin38> in cluster <slac> Done

Job <4FGL_J1359.1+5544_daily_bin38> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 18:30:53 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:30:54 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:54 2021
Terminated at Wed Sep  8 18:45:56 2021
Results reported at Wed Sep  8 18:45:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.1+5544_daily_bin38 209.785 55.7479 249177601 249436801 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 :                                   747.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             264.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

