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


Performing analysis on: 4FGL_J1359.1+5544_daily_bin53
RA = 209.785, Dec = 55.7479
tmin = 253065601, tmax = 253324801
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='75619', job_status='RUN', time_executed='2021-09-08 18:31:12.674104', time_epoch_executed='1631151072.67' WHERE source_name='4FGL J1359.1+5544' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75619

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75619/ft1_4FGL_J1359.1+5544_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75619/ft2_4FGL_J1359.1+5544_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75619/ft1_4FGL_J1359.1+5544_daily_bin53.fits outfile=/scratch/kocevski/75619/ft1_filteredMKT_4FGL_J1359.1+5544_daily_bin53.fits ra=209.785 dec=55.7479 rad=12.0 tmin=253065601.0 tmax=253324801.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.41
user 1.21
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75619/ft2_4FGL_J1359.1+5544_daily_bin53.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/75619/ft1_filteredMKT_4FGL_J1359.1+5544_daily_bin53.fits evtable="EVENTS" outfile="/scratch/kocevski/75619/ft1_filtered_4FGL_J1359.1+5544_daily_bin53.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.56
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75619/ft1_filtered_4FGL_J1359.1+5544_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/75619/ft2_4FGL_J1359.1+5544_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/75619/ltcube_253065601_253324801_4FGL_J1359.1+5544_daily_bin53.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/75619/ft2_4FGL_J1359.1+5544_daily_bin53.fits
.....................!
real 12.41
user 12.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75619/ft1_filtered_4FGL_J1359.1+5544_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/75619/ft2_4FGL_J1359.1+5544_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/75619/ltcube_253065601_253324801_4FGL_J1359.1+5544_daily_bin53.fits outfile=/scratch/kocevski/75619/expmap_253065601_253324801_4FGL_J1359.1+5544_daily_bin53.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/75619/ltcube_253065601_253324801_4FGL_J1359.1+5544_daily_bin53.fits
.....................!
real 189.89
user 184.91
sys 4.61

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/75619/ft1_filtered_4FGL_J1359.1+5544_daily_bin53.fits scfile=/scratch/kocevski/75619/ft2_4FGL_J1359.1+5544_daily_bin53.fits outfile=/scratch/kocevski/75619/cmap_253065601_253324801_4FGL_J1359.1+5544_daily_bin53.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75619/ft1_filtered_4FGL_J1359.1+5544_daily_bin53.fits scfile=/scratch/kocevski/75619/ft2_4FGL_J1359.1+5544_daily_bin53.fits outfile=/scratch/kocevski/75619/cmap_HighResolution_253065601_253324801_4FGL_J1359.1+5544_daily_bin53.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7641       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5733       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0593       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .16756E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.964       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4095       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.4620       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.440       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36502E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.0549       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.926       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.428       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14312E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.224       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23178E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8005       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.764       1.0000         .10000E-03   10000.    
    27 'Prefactor '    71.475       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13890E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .18989E-01   1.0000         .10000E-03   10000.    
    34 'Prefactor '    29.719       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.3891       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .53102       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=   5677.856     FROM MIGRAD    STATUS=CONVERGED   1065 CALLS     5391 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7650        7.1646       -.81034E-06    .59466E-04
   2  norm          2.5735        2.2635        .12004E-06    .60264E-04
   3  norm          2.0594        1.7914        .16358E-07    .53980E-04
   4  Prefactor     .10000E-03    10.666        .39057E-08** at limit **
   5  Prefactor     .10000E-03    4.2635        .57358E-07** at limit **
   6  norm          .10000E-03    1.9478       -.30754E-08** at limit **
   7  Prefactor     53.960        36.481        .42973E-06    .52188E-04
   8  Prefactor     5.4089        18.311       -.58360E-05    .94011E-05
   9  Prefactor     .10000E-03    19.665       -.12627E-05** at limit **
  10  norm          4.4623        3.9793        .41038E-06    .11283E-03
  11  Prefactor     .10000E-03    25.007        .10530E-05** at limit **
  12  Prefactor     .10000E-03    1.1202       -.39753E-08** at limit **
  13  Prefactor     11.434        48.535       -.69987E-06    .12746E-04
  14  Prefactor     .10013E-03    10.007       -.52430E-05** at limit **
  15  norm          5.0552        1.8870       -.57996E-08    .19694E-03
  16  norm          .10000E-03    56.436       -.62225E-06** at limit **
  17  norm          10.927        5.2064       -.25728E-08    .76963E-04
  18  Prefactor     22.425        29.928       -.33599E-08    .12254E-04
  19  Prefactor     .10000E-03    416.03       -.12936E-04** at limit **
  20  Prefactor     .10000E-03    38.940        .39377E-05** at limit **
  21  Prefactor     .10000E-03    26.764       -.30405E-05** at limit **
  22  Prefactor     14.227        7.3862        .59922E-06    .18977E-03
  23  Prefactor     .10000E-03    64.573       -.17644E-04** at limit **
  24  Prefactor     3.8008        3.1022       -.10151E-06    .81367E-04
  25  Prefactor     .10000E-03    17.530        .39649E-06** at limit **
  26  Prefactor     22.767        28.849        .67726E-08    .82381E-04
  27  Prefactor     71.479        68.217       -.11780E-06    .70476E-05
  28  Prefactor     .10000E-03    34.839       -.30220E-05** at limit **
  29  Prefactor     .10000E-03    24.458        .14824E-05** at limit **
  30  Prefactor     .10000E-03    9.0290       -.18125E-08** at limit **
  31  Prefactor     .10000E-03    20.051       -.64357E-07** at limit **
  32  norm          .10000E-03    .77510       -.39010E-07** at limit **
  33  Prefactor     .10000E-03    81.170        .16739E-04** at limit **
  34  Prefactor     29.730        16.114        .94283E-06    .89544E-03
  35  Normalizat    1.3891        .19767        .63214E-06    .37258E-03
  36  Prefactor     .53090        .21797        .14642E-06    .27526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.76495
  norm       = 2.57353
  norm       = 2.05935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.9597
  Prefactor  = 5.40886
  Prefactor  = 0.0001
  norm       = 4.46226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4337
  Prefactor  = 0.000100127
  norm       = 5.05523
  norm       = 0.0001
  norm       = 10.9269
  Prefactor  = 22.4247
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 14.2271
  Prefactor  = 0.000100001
  Prefactor  = 3.80079
  Prefactor  = 0.0001
  Prefactor  = 22.7669
  Prefactor  = 71.4791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 29.7299
  Normalizat = 1.38913
  Prefactor  = 0.530901
 **********
 **   18 **HESSE 
 **********

 FCN=   5677.856     FROM HESSE     STATUS=OK           821 CALLS     6212 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7650        7.1436        .18434E-03   -1.5271    
   2  norm          2.5735        2.2573        .96750E-04   -1.5387    
   3  norm          2.0594        1.7978        .91238E-04   -1.5421    
   4  Prefactor     .10000E-03    10.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2741        .15191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.7343        .20415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     53.960        36.468        .54601E-04   -1.4237    
   8  Prefactor     5.4089        18.331        .86388E-03   -1.5243    
   9  Prefactor     .10000E-03    19.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.4623        3.9832        .12839E-03   -1.5285    
  11  Prefactor     .10000E-03    25.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1230        .77862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.434        48.822        .11845E-03   -1.5032    
  14  Prefactor     .10013E-03    5.0563        .57917E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0552        1.8864        .61073E-04   -1.5258    
  16  norm          .10000E-03    56.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.927        5.2052        .11229E-03   -1.5047    
  18  Prefactor     22.425        29.919        .84579E-04   -1.4761    
  19  Prefactor     .10000E-03    413.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.227        7.3163        .10620E-03   -1.4953    
  23  Prefactor     .10000E-03    120.71        .46812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.8008        3.0949        .10772E-03   -1.5318    
  25  Prefactor     .10000E-03    17.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.767        28.785        .83954E-04   -1.4753    
  27  Prefactor     71.479        68.110        .47484E-04   -1.4015    
  28  Prefactor     .10000E-03    34.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    24.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.0372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    20.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    1.2654        .12889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    140.96        .53058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     29.730        14.424        .73493E-04   -1.4617    
  35  Normalizat    1.3891        .22904        .21225E-03   -.80944    
  36  Prefactor     .53090        .24750        .37700E-03   -1.1058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86817e-10
Minuit parameter uncertainties:
  1  7.14485
  2  2.25735
  3  1.79787
  4  8.31936e-07
  5  4.17101e-06
  6  2.99598e-06
  7  36.4828
  8  18.3499
  9  3.9213e-05
  10  3.98347
  11  4.31665e-05
  12  6.42407e-07
  13  47.3188
  14  0.00160524
  15  1.8864
  16  5.31517e-05
  17  5.20537
  18  29.9393
  19  0.00259072
  20  0.000284835
  21  4.09038e-05
  22  7.3168
  23  0.000603116
  24  3.09498
  25  2.5032e-05
  26  28.803
  27  68.1843
  28  0.000188638
  29  0.000207935
  30  3.62485e-06
  31  5.42625e-05
  32  3.09537e-06
  33  0.0013784
  34  14.4257
  35  0.229206
  36  0.248003
Done.

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

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  1.093e+01  5.205e+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:  5.309e-01  2.480e-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:  1.389e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.93
Ra Dec: 209.785 55.748
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.18e-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) = 5676.65058215
delta logL = 1.20536093984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5676.63558973
delta logL = 1.22035335762

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6508       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5360       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50129       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=   5676.636     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      210 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6508        5.5740        .32249E-02    .36457E-02
   2  alpha         1.5360        .39674        .30621        .34020E-04
   3  Normalizat    1.4388        .18908        .47372E-01   -.22137E-04
   4  Prefactor     .50133        .21766        .87515E-01    .57922E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.65077
  alpha      = 1.53596
  Normalizat = 1.43877
  Prefactor  = 0.501329
 **********
 **   18 **HESSE 
 **********

 FCN=   5676.636     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6508        7.2535        .12900E-03   -1.5087    
   2  alpha         1.5360        .55791        .12454E-01   -.39588    
   3  Normalizat    1.4388        .21420        .20941E-03   -.79514    
   4  Prefactor     .50133        .24518        .38776E-03   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.25609e-09
Minuit parameter uncertainties:
  1  7.2542
  2  0.563503
  3  0.214334
  4  0.245694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75619': 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) = 5676.63558971
delta logL = 1.22035337402

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  9.651e+00  7.254e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.536e+00  5.635e-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:  5.013e-01  2.457e-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:  1.439e+00  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.33
Ra Dec: 209.785 55.748
Photon Index (Free Index): 1.54 +/- 0.56
Photon Flux (Free Index): 3.09e-08 +/- 2.91e-08
Energy Flux (Free Index): 4.04e-05 +/- 3.15e-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/75619/cmap_HighResolution_253065601_253324801_4FGL_J1359.1+5544_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='4.04e-05', photon_flux_error='3.48e-08', dlogl='1.22e+00', energy_flux='2.47e-05', photon_flux2='3.09e-08', job_status='DONE', time_completed='2021-09-08 18:46:49.341397', photon_index_error2='0.56', photon_index2='1.54', ts='16.93', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='3.15e-05', EG='1.39', time_epoch_completed='1631152009.34', return_code='0', job_id='75619', GAL2='0.50', EG2='1.44', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.91e-08', ts2='19.33', photon_index='2.36' WHERE bin_id='53' AND source_name='4FGL J1359.1+5544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:46:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 75619: <4FGL_J1359.1+5544_daily_bin53> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.1+5544_daily_bin53 209.785 55.7479 253065601 253324801 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 :                                   934.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

