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


Performing analysis on: 4FGL_J1359.1+5544_daily_bin1239
RA = 209.785, Dec = 55.7479
tmin = 560476801, tmax = 560736001
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='83942', job_status='RUN', time_executed='2021-09-08 19:00:54.694526', time_epoch_executed='1631152854.69' WHERE source_name='4FGL J1359.1+5544' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83942

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83942/ft1_4FGL_J1359.1+5544_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83942/ft2_4FGL_J1359.1+5544_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83942/ft1_4FGL_J1359.1+5544_daily_bin1239.fits outfile=/scratch/kocevski/83942/ft1_filteredMKT_4FGL_J1359.1+5544_daily_bin1239.fits ra=209.785 dec=55.7479 rad=12.0 tmin=560476801.0 tmax=560736001.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 3.75
user 3.50
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83942/ft1_filtered_4FGL_J1359.1+5544_daily_bin1239.fits" evtable="EVENTS" scfile=/scratch/kocevski/83942/ft2_4FGL_J1359.1+5544_daily_bin1239.fits sctable="SC_DATA" outfile=/scratch/kocevski/83942/ltcube_560476801_560736001_4FGL_J1359.1+5544_daily_bin1239.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/83942/ft2_4FGL_J1359.1+5544_daily_bin1239.fits
.....................!
real 11.89
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83942/ft1_filtered_4FGL_J1359.1+5544_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/83942/ft2_4FGL_J1359.1+5544_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/83942/ltcube_560476801_560736001_4FGL_J1359.1+5544_daily_bin1239.fits outfile=/scratch/kocevski/83942/expmap_560476801_560736001_4FGL_J1359.1+5544_daily_bin1239.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/83942/ltcube_560476801_560736001_4FGL_J1359.1+5544_daily_bin1239.fits
.....................!
real 190.81
user 185.66
sys 4.72

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/83942/ft1_filtered_4FGL_J1359.1+5544_daily_bin1239.fits scfile=/scratch/kocevski/83942/ft2_4FGL_J1359.1+5544_daily_bin1239.fits outfile=/scratch/kocevski/83942/cmap_560476801_560736001_4FGL_J1359.1+5544_daily_bin1239.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/83942/ft1_filtered_4FGL_J1359.1+5544_daily_bin1239.fits scfile=/scratch/kocevski/83942/ft2_4FGL_J1359.1+5544_daily_bin1239.fits outfile=/scratch/kocevski/83942/cmap_HighResolution_560476801_560736001_4FGL_J1359.1+5544_daily_bin1239.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/83942/ft1_filtered_4FGL_J1359.1+5544_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/83942/ft2_4FGL_J1359.1+5544_daily_bin1239.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/83942/Model_4FGL_J1359.1+5544_daily_bin1239.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/83942/ft1_filtered_4FGL_J1359.1+5544_daily_bin1239.fits.....................!
real 34.80
user 33.46
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.4036       1.0000         .10000E-03   10000.    
     3 'norm      '    6.2328       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.150       1.0000         .10000E-03   10000.    
     6 'norm      '    20.415       1.0000         .10000E-03   10000.    
     7 'Prefactor '    80.221       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11074E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    89.944       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.976       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1436       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.213       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18521E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    102.68       1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.384       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    83.620       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.3706       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .20025E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    3.0878       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .11729E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    3.1489       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0960       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .67681       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=   3394.463     FROM MIGRAD    STATUS=CONVERGED   1047 CALLS     5352 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8312        .20876E-07** at limit **
   2  norm          6.4039        4.1208       -.68965E-07    .55264E-05
   3  norm          6.2342        4.0456       -.10431E-06    .50023E-05
   4  Prefactor     .10000E-03    27.111        .10260E-05** at limit **
   5  Prefactor     20.154        15.702       -.82505E-07   -.18941E-05
   6  norm          20.418        9.0612       -.43236E-07   -.19750E-04
   7  Prefactor     80.204        53.347       -.43404E-05    .18693E-04
   8  Prefactor     .10000E-03    10.718        .22786E-06** at limit **
   9  Prefactor     .10002E-03    176.46       -.29151E-06** at limit **
  10  norm          .10000E-03    2.8488        .35647E-06** at limit **
  11  Prefactor     .10000E-03    32.654       -.83695E-06** at limit **
  12  Prefactor     .10000E-03    4.0599        .10424E-06** at limit **
  13  Prefactor     89.967        55.180       -.76178E-06   -.16757E-04
  14  Prefactor     11.977        12.570       -.31968E-06   -.72717E-06
  15  norm          2.1437        1.8362       -.20303E-06    .58683E-04
  16  norm          .10000E-03    48.022       -.40557E-06** at limit **
  17  norm          11.214        6.0343       -.11035E-06   -.27254E-04
  18  Prefactor     .10000E-03    25.213       -.93658E-06** at limit **
  19  Prefactor     .10000E-03    421.56        .15688E-04** at limit **
  20  Prefactor     102.66        90.922        .15454E-05    .17068E-05
  21  Prefactor     34.403        62.025       -.10807E-05   -.18451E-04
  22  Prefactor     .10000E-03    3.0251       -.29442E-06** at limit **
  23  Prefactor     .10000E-03    6.6885       -.79397E-07** at limit **
  24  Prefactor     .10000E-03    .95252        .10674E-06** at limit **
  25  Prefactor     .10000E-03    13.878       -.12746E-06** at limit **
  26  Prefactor     .10000E-03    15.399        .41299E-06** at limit **
  27  Prefactor     .10000E-03    137.53        .66811E-05** at limit **
  28  Prefactor     83.620        60.840        .13457E-06   -.12821E-04
  29  Prefactor     2.3807        30.267        .29605E-05   -.33995E-04
  30  Prefactor     .10000E-03    180.96        .24433E-04** at limit **
  31  Prefactor     .10000E-03    10.349       -.19023E-06** at limit **
  32  norm          3.0874        2.7622       -.15630E-06   -.11140E-03
  33  Prefactor     .10000E-03    30.165        .29321E-05** at limit **
  34  Prefactor     3.1539        9.7476       -.11758E-05   -.99965E-04
  35  Normalizat    1.0952        .24308        .13518E-06   -.13295E-03
  36  Prefactor     .67764        .27354        .88274E-06   -.29580E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.40385
  norm       = 6.23418
  Prefactor  = 0.0001
  Prefactor  = 20.1545
  norm       = 20.418
  Prefactor  = 80.2041
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.967
  Prefactor  = 11.9766
  norm       = 2.14366
  norm       = 0.0001
  norm       = 11.2143
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 102.656
  Prefactor  = 34.4025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.6199
  Prefactor  = 2.38072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08741
  Prefactor  = 0.0001
  Prefactor  = 3.15386
  Normalizat = 1.09523
  Prefactor  = 0.677639
 **********
 **   18 **HESSE 
 **********

 FCN=   3394.463     FROM HESSE     STATUS=OK           803 CALLS     6155 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8380        .11134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.4039        4.1188        .89401E-04   -1.5202    
   3  norm          6.2342        4.0478        .90590E-04   -1.5209    
   4  Prefactor     .10000E-03    27.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.154        15.714        .89226E-04   -1.4810    
   6  norm          20.418        9.0642        .88646E-04   -1.4804    
   7  Prefactor     80.204        53.543        .44841E-04   -1.3914    
   8  Prefactor     .10000E-03    10.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    178.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.9102        .19086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0897        .11400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     89.967        55.382        .42368E-04   -1.3808    
  14  Prefactor     11.977        12.519        .11576E-03   -1.5016    
  15  norm          2.1437        1.8270        .70561E-04   -1.5415    
  16  norm          .10000E-03    48.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.214        6.0348        .10085E-03   -1.5038    
  18  Prefactor     .10000E-03    25.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    425.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     102.66        90.881        .39680E-04   -1.3678    
  21  Prefactor     34.403        62.189        .68340E-04   -1.4534    
  22  Prefactor     .10000E-03    3.0321        .98935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.6904        .14717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .95366        .55505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    137.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     83.620        60.839        .43927E-04   -1.3877    
  29  Prefactor     2.3807        29.873        .26612E-03   -1.5399    
  30  Prefactor     .10000E-03    177.04        .57094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    10.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          3.0874        2.7499        .86418E-04   -1.5357    
  33  Prefactor     .10000E-03    30.825        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     3.1539        9.7646        .22843E-03   -1.5353    
  35  Normalizat    1.0952        .28604        .22192E-03   -.89905    
  36  Prefactor     .67764        .31563        .32464E-03   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16667e-10
Minuit parameter uncertainties:
  1  7.34027e-07
  2  4.11898
  3  4.04799
  4  3.85803e-05
  5  15.7177
  6  9.06484
  7  53.5748
  8  1.32086e-05
  9  0.00344687
  10  9.77205e-06
  11  2.1127e-05
  12  9.07413e-06
  13  55.4134
  14  12.5214
  15  1.82704
  16  2.1301e-05
  17  6.0351
  18  3.86092e-05
  19  0.00267735
  20  91.0051
  21  62.3064
  22  4.65927e-08
  23  2.41534e-07
  24  1.62377e-06
  25  1.04542e-05
  26  1.0411e-05
  27  7.16166e-05
  28  60.8845
  29  16.8767
  30  0.00044154
  31  1.38709e-05
  32  2.75004
  33  0.000161943
  34  9.76958
  35  0.286441
  36  0.316466
Done.

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

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  1.121e+01  6.035e+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:  6.776e-01  3.165e-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.095e+00  2.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.57
Ra Dec: 209.785 55.748
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 7.51e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.36e-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) = 3394.2520583
delta logL = 0.210752226983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3394.25114031
delta logL = 0.21167021775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.439       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9973       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65730       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=   3394.251     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      255 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.437        20.637        .27316E-02   -.50274E-04
   2  alpha         1.9973        1.2878        .26817       -.30801E-05
   3  Normalizat    1.1179        .23797        .37312E-01   -.20959E-04
   4  Prefactor     .65725        .27617        .74337E-01    .15595E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.4369
  alpha      = 1.99729
  Normalizat = 1.11793
  Prefactor  = 0.65725
 **********
 **   18 **HESSE 
 **********

 FCN=   3394.251     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.437        7.5862        .10926E-03   -1.4975    
   2  alpha         1.9973        .53277        .10948E-01   -.20246    
   3  Normalizat    1.1179        .26273        .22001E-03   -.89178    
   4  Prefactor     .65725        .30781        .32907E-03   -1.0523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1844e-12
Minuit parameter uncertainties:
  1  7.58673
  2  0.537061
  3  0.263034
  4  0.308606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83942': 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) = 3394.25113996
delta logL = 0.211670561374

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  1.344e+01  7.587e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.997e+00  5.371e-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:  6.572e-01  3.086e-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.118e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.98
Ra Dec: 209.785 55.748
Photon Index (Free Index): 2.00 +/- 0.54
Photon Flux (Free Index): 6.05e-08 +/- 3.96e-08
Energy Flux (Free Index): 3.24e-05 +/- 2.32e-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/83942/cmap_HighResolution_560476801_560736001_4FGL_J1359.1+5544_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.51e-08', energy_flux2='3.24e-05', photon_flux_error='4.04e-08', dlogl='2.12e-01', energy_flux='2.53e-05', photon_flux2='6.05e-08', job_status='DONE', time_completed='2021-09-08 19:13:08.623629', photon_index_error2='0.54', photon_index2='2.00', ts='8.57', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='1.10', time_epoch_completed='1631153588.62', return_code='0', job_id='83942', GAL2='0.66', EG2='1.12', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.96e-08', ts2='8.98', photon_index='2.36' WHERE bin_id='1239' AND source_name='4FGL J1359.1+5544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:13:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 83942: <4FGL_J1359.1+5544_daily_bin1239> in cluster <slac> Done

Job <4FGL_J1359.1+5544_daily_bin1239> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  8 19:00:38 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:00:40 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:40 2021
Terminated at Wed Sep  8 19:13:09 2021
Results reported at Wed Sep  8 19:13:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.1+5544_daily_bin1239 209.785 55.7479 560476801 560736001 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.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            751 sec.

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

