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


Performing analysis on: 4FGL_J1359.1+5544_daily_bin959
RA = 209.785, Dec = 55.7479
tmin = 487900801, tmax = 488160001
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='82313', job_status='RUN', time_executed='2021-09-08 18:55:42.257418', time_epoch_executed='1631152542.26' WHERE source_name='4FGL J1359.1+5544' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82313/ft1_4FGL_J1359.1+5544_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82313/ft2_4FGL_J1359.1+5544_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82313/ft1_4FGL_J1359.1+5544_daily_bin959.fits outfile=/scratch/kocevski/82313/ft1_filteredMKT_4FGL_J1359.1+5544_daily_bin959.fits ra=209.785 dec=55.7479 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.05
user 5.79
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82313/ft2_4FGL_J1359.1+5544_daily_bin959.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/82313/ft1_filteredMKT_4FGL_J1359.1+5544_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/82313/ft1_filtered_4FGL_J1359.1+5544_daily_bin959.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/82313/ft1_filtered_4FGL_J1359.1+5544_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/82313/ft2_4FGL_J1359.1+5544_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/82313/ltcube_487900801_488160001_4FGL_J1359.1+5544_daily_bin959.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/82313/ft2_4FGL_J1359.1+5544_daily_bin959.fits
.....................!
real 12.10
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82313/ft1_filtered_4FGL_J1359.1+5544_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/82313/ft2_4FGL_J1359.1+5544_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/82313/ltcube_487900801_488160001_4FGL_J1359.1+5544_daily_bin959.fits outfile=/scratch/kocevski/82313/expmap_487900801_488160001_4FGL_J1359.1+5544_daily_bin959.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/82313/ltcube_487900801_488160001_4FGL_J1359.1+5544_daily_bin959.fits
.....................!
real 192.70
user 187.53
sys 4.78

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/82313/ft1_filtered_4FGL_J1359.1+5544_daily_bin959.fits scfile=/scratch/kocevski/82313/ft2_4FGL_J1359.1+5544_daily_bin959.fits outfile=/scratch/kocevski/82313/cmap_487900801_488160001_4FGL_J1359.1+5544_daily_bin959.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82313/ft1_filtered_4FGL_J1359.1+5544_daily_bin959.fits scfile=/scratch/kocevski/82313/ft2_4FGL_J1359.1+5544_daily_bin959.fits outfile=/scratch/kocevski/82313/cmap_HighResolution_487900801_488160001_4FGL_J1359.1+5544_daily_bin959.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.0909       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7900       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9702       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8831       1.0000         .10000E-03   10000.    
     7 'Prefactor '    88.709       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.510       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0599       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.411       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6221       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11378E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.0997       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.086       1.0000         .10000E-03   10000.    
    19 'Prefactor '    159.80       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.600       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.4454       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8494       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .17094E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11209E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    21.779       1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.7780       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    6.9027       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    33.761       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .52146       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.1482       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=   3168.229     FROM MIGRAD    STATUS=CONVERGED   1026 CALLS     6164 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6120       -.16293E-08** at limit **
   2  norm          5.0907        2.7149        .35025E-07   -.75971E-05
   3  norm          1.7899        1.6098        .13904E-07   -.87301E-05
   4  Prefactor     9.9713        32.247        .33834E-06   -.10684E-05
   5  Prefactor     .10000E-03    3.3469       -.36560E-08** at limit **
   6  norm          1.8826        5.0010        .30152E-05   -.67565E-04
   7  Prefactor     88.718        55.926       -.21501E-05   -.85436E-04
   8  Prefactor     .10000E-03    11.172       -.13312E-06** at limit **
   9  Prefactor     .10000E-03    66.130        .74947E-05** at limit **
  10  norm          .10000E-03    2.5938       -.28727E-08** at limit **
  11  Prefactor     59.500        61.622        .85804E-06   -.10354E-05
  12  Prefactor     6.0601        4.8806        .34890E-07    .27476E-06
  13  Prefactor     11.414        78.740       -.56601E-06   -.16835E-05
  14  Prefactor     1.6212        7.5299        .19726E-06   -.75308E-05
  15  norm          .10000E-03    .58011       -.10001E-07** at limit **
  16  norm          .10000E-03    265.48        .15257E-05** at limit **
  17  norm          5.0988        6.1707        .24320E-06    .22826E-05
  18  Prefactor     42.086        27.620        .40460E-07   -.83354E-06
  19  Prefactor     159.56        979.55        .20614E-04   -.50565E-06
  20  Prefactor     .10000E-03    112.46       -.10111E-04** at limit **
  21  Prefactor     20.595        71.229        .13260E-05   -.35958E-06
  22  Prefactor     .10000E-03    2.8334       -.18026E-07** at limit **
  23  Prefactor     .10000E-03    11.605        .17579E-06** at limit **
  24  Prefactor     7.4459        5.4049       -.25176E-07    .52118E-04
  25  Prefactor     8.8437        50.514        .92386E-06    .10998E-04
  26  Prefactor     .10000E-03    28.277        .40557E-06** at limit **
  27  Prefactor     .10000E-03    301.07        .11122E-04** at limit **
  28  Prefactor     .10000E-03    47.895       -.32787E-05** at limit **
  29  Prefactor     21.781        30.107       -.54717E-06   -.54792E-04
  30  Prefactor     9.7800        21.120        .43567E-06   -.28623E-05
  31  Prefactor     .10000E-03    15.464       -.91967E-07** at limit **
  32  norm          6.9024        3.7815        .39900E-07   -.26927E-04
  33  Prefactor     .10000E-03    11.212       -.68674E-07** at limit **
  34  Prefactor     33.764        27.527        .96212E-07    .99571E-06
  35  Normalizat    .52160        .22188        .13881E-06   -.39968E-04
  36  Prefactor     1.1481        .24789       -.10289E-05    .59348E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.09075
  norm       = 1.78993
  Prefactor  = 9.97133
  Prefactor  = 0.0001
  norm       = 1.88263
  Prefactor  = 88.7185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.4995
  Prefactor  = 6.06012
  Prefactor  = 11.4137
  Prefactor  = 1.62116
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.09875
  Prefactor  = 42.0859
  Prefactor  = 159.558
  Prefactor  = 0.0001
  Prefactor  = 20.5946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44587
  Prefactor  = 8.84369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7815
  Prefactor  = 9.77995
  Prefactor  = 0.0001
  norm       = 6.90237
  Prefactor  = 0.0001
  Prefactor  = 33.7638
  Normalizat = 0.521597
  Prefactor  = 1.14812
 **********
 **   18 **HESSE 
 **********

 FCN=   3168.229     FROM HESSE     STATUS=OK           811 CALLS     6975 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6196        .88789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0907        2.7149        .64810E-04   -1.5257    
   3  norm          1.7899        1.6078        .65833E-04   -1.5440    
   4  Prefactor     9.9713        32.257        .12690E-03   -1.5076    
   5  Prefactor     .10000E-03    3.3570        .10055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8826        5.0115        .94991E-03   -1.5434    
   7  Prefactor     88.718        56.514        .42660E-04   -1.3821    
   8  Prefactor     .10000E-03    11.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    66.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6132        .88479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     59.500        61.610        .52009E-04   -1.4164    
  12  Prefactor     6.0601        4.7915        .91475E-04   -1.5216    
  13  Prefactor     11.414        80.148        .11859E-03   -1.5032    
  14  Prefactor     1.6212        7.1382        .25905E-03   -1.5453    
  15  norm          .10000E-03    .58386        .41859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    266.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.0988        6.1378        .14090E-03   -1.5256    
  18  Prefactor     42.086        27.622        .61793E-04   -1.4410    
  19  Prefactor     159.56        982.90        .15949E-03   -1.3175    
  20  Prefactor     .10000E-03    112.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.595        71.504        .88247E-04   -1.4800    
  22  Prefactor     .10000E-03    2.8350        .92515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.4459        5.3900        .10154E-03   -1.5162    
  25  Prefactor     8.8437        50.569        .13474E-03   -1.5113    
  26  Prefactor     .10000E-03    28.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    301.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    47.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     21.781        30.092        .85828E-04   -1.4774    
  30  Prefactor     9.7800        21.120        .64075E-03   -1.5082    
  31  Prefactor     .10000E-03    15.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          6.9024        3.7817        .78211E-04   -1.5182    
  33  Prefactor     .10000E-03    11.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     33.764        27.553        .68966E-04   -1.4545    
  35  Normalizat    .52160        .26226        .26923E-03   -1.1142    
  36  Prefactor     1.1481        .29330        .23343E-03   -.87943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75645e-11
Minuit parameter uncertainties:
  1  3.60527e-07
  2  2.715
  3  1.6078
  4  32.3133
  5  2.79878e-07
  6  5.01265
  7  56.5478
  8  1.78394e-06
  9  4.53052e-05
  10  7.90403e-07
  11  61.6763
  12  4.7918
  13  60.6066
  14  6.80474
  15  1.56583e-07
  16  0.000207678
  17  6.13855
  18  27.6302
  19  812.704
  20  3.16032e-05
  21  71.8034
  22  7.13388e-07
  23  1.21665e-06
  24  5.39036
  25  42.3492
  26  2.71101e-06
  27  4.22347e-05
  28  4.26497e-06
  29  30.1128
  30  21.136
  31  2.47886e-06
  32  3.78178
  33  6.2039e-07
  34  27.5636
  35  0.262882
  36  0.293716
Done.

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

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  5.099e+00  6.139e+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.148e+00  2.937e-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:  5.216e-01  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 209.785 55.748
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 3.41e-08 +/- 4.11e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.39e-05

TS (Fixed Index): 1.40
Ra Dec: 209.785 55.748
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82313/likelihoodResults_487900801_488160001_4FGL_J1359.1+5544_daily_bin959.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) = 3167.796184
delta logL = 0.433301689975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3167.77790811
delta logL = 0.451577576265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27863       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .40493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2532       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3167.778     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      442 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27878        .26647        .20548E-04    .27580E-03
   2  alpha         5.0000        3.1935        .42969    ** at limit **
   3  Normalizat    .40475        .24071        .30357E-03    .96171E-04
   4  Prefactor     1.2534        .29010        .22498E-03    .18282E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.278782
  alpha      = 5
  Normalizat = 0.404753
  Prefactor  = 1.25341
 **********
 **   18 **HESSE 
 **********

 FCN=   3167.778     FROM HESSE     STATUS=OK            29 CALLS      471 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27878        .26112        .82193E-06   -1.5602    
   2  alpha         5.0000        3.1431        .44804        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .40475        .24120        .12143E-04   -1.1706    
   4  Prefactor     1.2534        .29043        .44996E-04   -.84703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10152e-09
Minuit parameter uncertainties:
  1  0.261121
  2  0.00049731
  3  0.241825
  4  0.290806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82313': 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) = 3167.7779077
delta logL = 0.451577991215

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  2.788e-01  2.611e-01  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  5.000e+00  4.973e-04  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.253e+00  2.908e-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:  4.048e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 209.785 55.748
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.14e-07 +/- 1.06e-07
Energy Flux (Free Index): 1.56e-05 +/- 1.46e-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/82313/cmap_HighResolution_487900801_488160001_4FGL_J1359.1+5544_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-05', comment='SUCCESS', photon_flux='3.41e-08', energy_flux2='1.56e-05', photon_flux_error='4.11e-08', dlogl='4.52e-01', energy_flux='1.15e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-08 19:09:37.835666', photon_index_error2='0.00', photon_index2='5.00', ts='1.40', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.46e-05', EG='0.52', time_epoch_completed='1631153377.84', return_code='0', job_id='82313', GAL2='1.25', EG2='0.40', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='1.06e-07', ts2='2.61', photon_index='2.36' WHERE bin_id='959' AND source_name='4FGL J1359.1+5544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:09:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 82313: <4FGL_J1359.1+5544_daily_bin959> in cluster <slac> Done

Job <4FGL_J1359.1+5544_daily_bin959> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 18:55:23 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:55:26 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:55:26 2021
Terminated at Wed Sep  8 19:09:38 2021
Results reported at Wed Sep  8 19:09:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.1+5544_daily_bin959 209.785 55.7479 487900801 488160001 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 :                                   830.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            855 sec.

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

