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


Performing analysis on: 4FGL_J1359.1+5544_daily_bin1157
RA = 209.785, Dec = 55.7479
tmin = 539222401, tmax = 539481601
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='83817', job_status='RUN', time_executed='2021-09-08 19:00:44.613910', time_epoch_executed='1631152844.61' WHERE source_name='4FGL J1359.1+5544' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83817

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83817/ft1_4FGL_J1359.1+5544_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83817/ft2_4FGL_J1359.1+5544_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83817/ft1_4FGL_J1359.1+5544_daily_bin1157.fits outfile=/scratch/kocevski/83817/ft1_filteredMKT_4FGL_J1359.1+5544_daily_bin1157.fits ra=209.785 dec=55.7479 rad=12.0 tmin=539222401.0 tmax=539481601.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 5.57
user 5.30
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/83817/ft2_4FGL_J1359.1+5544_daily_bin1157.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/83817/ft1_filteredMKT_4FGL_J1359.1+5544_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/83817/ft1_filtered_4FGL_J1359.1+5544_daily_bin1157.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/83817/ft1_filtered_4FGL_J1359.1+5544_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/83817/ft2_4FGL_J1359.1+5544_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/83817/ltcube_539222401_539481601_4FGL_J1359.1+5544_daily_bin1157.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/83817/ft2_4FGL_J1359.1+5544_daily_bin1157.fits
.....................!
real 11.58
user 11.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83817/ft1_filtered_4FGL_J1359.1+5544_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/83817/ft2_4FGL_J1359.1+5544_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/83817/ltcube_539222401_539481601_4FGL_J1359.1+5544_daily_bin1157.fits outfile=/scratch/kocevski/83817/expmap_539222401_539481601_4FGL_J1359.1+5544_daily_bin1157.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/83817/ltcube_539222401_539481601_4FGL_J1359.1+5544_daily_bin1157.fits
.....................!
real 190.07
user 185.56
sys 4.14

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/83817/ft1_filtered_4FGL_J1359.1+5544_daily_bin1157.fits scfile=/scratch/kocevski/83817/ft2_4FGL_J1359.1+5544_daily_bin1157.fits outfile=/scratch/kocevski/83817/cmap_539222401_539481601_4FGL_J1359.1+5544_daily_bin1157.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/83817/ft1_filtered_4FGL_J1359.1+5544_daily_bin1157.fits scfile=/scratch/kocevski/83817/ft2_4FGL_J1359.1+5544_daily_bin1157.fits outfile=/scratch/kocevski/83817/cmap_HighResolution_539222401_539481601_4FGL_J1359.1+5544_daily_bin1157.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.2050       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.316       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19663E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.786       1.0000         .10000E-03   10000.    
    10 'norm      '    8.8263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    138.05       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.376       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7569       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.791       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3168       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.876       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .50377E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    87.110       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.6180       1.0000         .10000E-03   10000.    
    32 'norm      '    3.0062       1.0000         .10000E-03   10000.    
    33 'Prefactor '    11.242       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .90734       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.1267       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=   2713.137     FROM MIGRAD    STATUS=CONVERGED   1005 CALLS     5317 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5263       -.66605E-07** at limit **
   2  norm          .10000E-03    2.1653       -.65687E-07** at limit **
   3  norm          8.2051        6.4166        .13776E-06   -.14354E-04
   4  Prefactor     .10001E-03    563.37       -.12472E-04** at limit **
   5  Prefactor     11.316        16.918        .12594E-05    .24187E-04
   6  norm          .10000E-03    4.6842       -.10008E-07** at limit **
   7  Prefactor     .10000E-03    289.37        .17891E-05** at limit **
   8  Prefactor     .10000E-03    21.589       -.21998E-06** at limit **
   9  Prefactor     48.795        68.915        .62172E-05    .37430E-04
  10  norm          8.8261        6.7990        .18714E-07   -.16678E-04
  11  Prefactor     138.04        115.96        .39815E-06   -.14818E-04
  12  Prefactor     25.405        9.7997        .92006E-07   -.41716E-04
  13  Prefactor     27.380        84.058        .12871E-05   -.14132E-04
  14  Prefactor     .10000E-03    14.174       -.13634E-07** at limit **
  15  norm          2.7569        3.2658        .84203E-07    .39033E-06
  16  norm          .10000E-03    59.258        .30921E-07** at limit **
  17  norm          .10000E-03    2.7306       -.24677E-07** at limit **
  18  Prefactor     .10000E-03    24.180       -.70930E-07** at limit **
  19  Prefactor     .10000E-03    342.60       -.12002E-07** at limit **
  20  Prefactor     .10000E-03    44.021       -.45472E-07** at limit **
  21  Prefactor     46.791        76.502        .10724E-05   -.13096E-04
  22  Prefactor     9.3166        9.2005        .65564E-07   -.11889E-04
  23  Prefactor     16.875        22.803        .16641E-06   -.33821E-05
  24  Prefactor     .10000E-03    1.9527        .16434E-08** at limit **
  25  Prefactor     .10117E-03    55.449        .33496E-05** at limit **
  26  Prefactor     .10000E-03    21.139        .63468E-07** at limit **
  27  Prefactor     .10000E-03    53.423        .93552E-07** at limit **
  28  Prefactor     87.110        70.610        .71036E-06   -.11275E-03
  29  Prefactor     .10000E-03    40.574        .13412E-05** at limit **
  30  Prefactor     .10000E-03    26.881        .17420E-06** at limit **
  31  Prefactor     1.5894        136.73        .46967E-05    .50363E-05
  32  norm          3.0060        2.4992        .15755E-06   -.49261E-04
  33  Prefactor     11.242        12.782        .12841E-05    .35150E-05
  34  Prefactor     .10000E-03    3.2120       -.21315E-07** at limit **
  35  Normalizat    .90726        .29834       -.33550E-05   -.97991E-04
  36  Prefactor     1.1268        .31530        .94072E-06   -.14658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.20509
  Prefactor  = 0.00010001
  Prefactor  = 11.3165
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 48.7952
  norm       = 8.82614
  Prefactor  = 138.042
  Prefactor  = 25.4055
  Prefactor  = 27.3804
  Prefactor  = 0.0001
  norm       = 2.75693
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.7907
  Prefactor  = 9.31663
  Prefactor  = 16.8753
  Prefactor  = 0.0001
  Prefactor  = 0.000101167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 87.1104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.58943
  norm       = 3.00602
  Prefactor  = 11.2417
  Prefactor  = 0.0001
  Normalizat = 0.90726
  Prefactor  = 1.1268
 **********
 **   18 **HESSE 
 **********

 FCN=   2713.137     FROM HESSE     STATUS=OK           805 CALLS     6122 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5403        .11958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.1894        .74828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.2051        6.4133        .11224E-03   -1.5135    
   4  Prefactor     .10001E-03    575.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.316        16.935        .59547E-03   -1.5035    
   6  norm          .10000E-03    4.6967        .11010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    289.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.795        69.000        .57412E-04   -1.4310    
  10  norm          8.8261        6.7982        .11526E-03   -1.5114    
  11  Prefactor     138.04        115.98        .34282E-04   -1.3353    
  12  Prefactor     25.405        9.8051        .39739E-03   -1.4699    
  13  Prefactor     27.380        84.633        .76568E-04   -1.4661    
  14  Prefactor     .10000E-03    14.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7569        3.2515        .97231E-04   -1.5376    
  16  norm          .10000E-03    59.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7368        .84043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    342.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.791        76.529        .58617E-04   -1.4339    
  22  Prefactor     9.3166        9.1912        .13130E-03   -1.5097    
  23  Prefactor     16.875        22.796        .97494E-04   -1.4886    
  24  Prefactor     .10000E-03    1.9663        .71034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10117E-03    394.05        .67364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    53.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     87.110        67.108        .43046E-04   -1.3839    
  29  Prefactor     .10000E-03    40.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    27.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.5894        133.61        .33280E-03   -1.5456    
  32  norm          3.0060        2.4696        .69559E-04   -1.5361    
  33  Prefactor     11.242        12.791        .59743E-03   -1.5037    
  34  Prefactor     .10000E-03    3.2145        .91162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .90726        .34411        .26058E-03   -.96205    
  36  Prefactor     1.1268        .37221        .28132E-03   -.88615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8997e-09
Minuit parameter uncertainties:
  1  6.673e-07
  2  2.14555e-07
  3  6.41383
  4  0.00475401
  5  16.9426
  6  2.24535e-06
  7  0.00214775
  8  1.40713e-05
  9  69.1129
  10  6.79879
  11  116.168
  12  9.80572
  13  85.0072
  14  1.11573e-05
  15  3.25168
  16  2.83506e-05
  17  6.37959e-07
  18  2.63016e-05
  19  1.34515e-06
  20  1.91206e-05
  21  76.6906
  22  9.19263
  23  22.8074
  24  8.0206e-07
  25  0.0431831
  26  8.24651e-06
  27  4.94561e-05
  28  67.1668
  29  4.07041e-05
  30  6.78802e-05
  31  29.2117
  32  2.46971
  33  12.7944
  34  1.40758e-06
  35  0.344945
  36  0.373076
Done.

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

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  1.000e-04  6.380e-07  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.127e+00  3.731e-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.073e-01  3.449e-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: 8.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83817/likelihoodResults_539222401_539481601_4FGL_J1359.1+5544_daily_bin1157.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): 102
logL (Free Index) = 2713.13902356
delta logL = -0.00168333636475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2713.13734017
delta logL = 5.2417817642e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3468       1.0000          .0000       5.0000    
     3 'Normalizat'    .90726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1268       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2713.137     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      237 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    186.56        .84781E-02** at limit **
   2  alpha         1.8959        3.9670        .16500        .25563E-07
   3  Normalizat    .90726        .53893E-01    .26058E-03   -.25806E-04
   4  Prefactor     1.1268        .64385E-01    .28132E-03   -.19135E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.89585
  Normalizat = 0.907259
  Prefactor  = 1.1268
 **********
 **   18 **HESSE 
 **********

 FCN=   2713.137     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1812        .90625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8959        3.7449        .65999E-02   -.24408    
   3  Normalizat    .90726        .30558        .10423E-04   -.96206    
   4  Prefactor     1.1268        .36495        .11253E-04   -.88615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65012e-12
Minuit parameter uncertainties:
  1  2.05275e-06
  2  207.253
  3  0.306169
  4  0.365768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83817': 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) = 2713.13733769
delta logL = 2.53474490819e-06

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  1.000e-04  2.053e-06  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.896e+00  2.073e+02  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.127e+00  3.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.073e-01  3.062e-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/83817/cmap_HighResolution_539222401_539481601_4FGL_J1359.1+5544_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-05', job_status='DONE', photon_flux_upper_limit='8.92e-08', time_completed='2021-09-08 19:12:45.147577', job_id='83817', GAL2='1.13', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631153565.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1157' AND source_name='4FGL J1359.1+5544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:12:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 83817: <4FGL_J1359.1+5544_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1359.1+5544_daily_bin1157> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  8 19:00:28 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:00:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 19:00:30 2021
Terminated at Wed Sep  8 19:12:45 2021
Results reported at Wed Sep  8 19:12:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.1+5544_daily_bin1157 209.785 55.7479 539222401 539481601 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 :                                   715.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             278.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

