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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin37
RA = 209.928, Dec = 40.2153
tmin = 248918401, tmax = 249177601
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='95397', job_status='RUN', time_executed='2021-09-08 19:37:30.132663', time_epoch_executed='1631155050.13' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95397

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95397/ft1_4FGL_J1359.7+4012_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95397/ft2_4FGL_J1359.7+4012_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95397/ft1_4FGL_J1359.7+4012_daily_bin37.fits outfile=/scratch/kocevski/95397/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin37.fits ra=209.928 dec=40.2153 rad=12.0 tmin=248918401.0 tmax=249177601.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.94
user 1.73
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/95397/ft2_4FGL_J1359.7+4012_daily_bin37.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95397/ft2_4FGL_J1359.7+4012_daily_bin37.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/95397/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/95397/ft1_filtered_4FGL_J1359.7+4012_daily_bin37.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95397/ft1_filtered_4FGL_J1359.7+4012_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/95397/ft2_4FGL_J1359.7+4012_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/95397/ltcube_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.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/95397/ft2_4FGL_J1359.7+4012_daily_bin37.fits
.....................!
real 12.59
user 12.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95397/ft1_filtered_4FGL_J1359.7+4012_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/95397/ft2_4FGL_J1359.7+4012_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/95397/ltcube_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.fits outfile=/scratch/kocevski/95397/expmap_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.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/95397/ltcube_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.fits
.....................!
real 190.63
user 185.30
sys 5.00

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1359.7+4012 @ 209.928 40.2153

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/95397/ft1_filtered_4FGL_J1359.7+4012_daily_bin37.fits scfile=/scratch/kocevski/95397/ft2_4FGL_J1359.7+4012_daily_bin37.fits outfile=/scratch/kocevski/95397/cmap_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.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.928 yref=40.2153 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95397/ft1_filtered_4FGL_J1359.7+4012_daily_bin37.fits scfile=/scratch/kocevski/95397/ft2_4FGL_J1359.7+4012_daily_bin37.fits outfile=/scratch/kocevski/95397/cmap_HighResolution_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.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.928 yref=40.2153 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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95397/ft1_filtered_4FGL_J1359.7+4012_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/95397/ft2_4FGL_J1359.7+4012_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95397/Model_4FGL_J1359.7+4012_daily_bin37.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/95397/ft1_filtered_4FGL_J1359.7+4012_daily_bin37.fits.....................!
real 38.76
user 37.42
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/95397/ft1_filtered_4FGL_J1359.7+4012_daily_bin37.fits', '/scratch/kocevski/95397/ft2_4FGL_J1359.7+4012_daily_bin37.fits', expMap='/scratch/kocevski/95397/expmap_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.fits', expCube='/scratch/kocevski/95397/ltcube_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/95397/Model_4FGL_J1359.7+4012_daily_bin37.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.7+4012'

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  4.118e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/95397/ft1_filtered_4FGL_J1359.7+4012_daily_bin37.fits
Spacecraft file(s): /scratch/kocevski/95397/ft2_4FGL_J1359.7+4012_daily_bin37.fits
Exposure map: /scratch/kocevski/95397/expmap_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.fits
Exposure cube: /scratch/kocevski/95397/ltcube_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/95397/Model_4FGL_J1359.7+4012_daily_bin37.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) = 4419.98177989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.0827       1.0000         .10000E-03   10000.    
     4 'norm      '    .31143E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4636       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4355       1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.975       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11219E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    13.914       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.508       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.151       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0548       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9909       1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.753       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.0855       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.724       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.2301       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4669       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .47195       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4419.949     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4365 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.218       -.43263E-06** at limit **
   2  Prefactor     .10000E-03    8.7984       -.27850E-06** at limit **
   3  norm          8.0823        5.9025       -.97805E-07    .75815E-05
   4  norm          .10037E-03    8.6146        .23649E-05** at limit **
   5  norm          5.4643        5.7923       -.22496E-06   -.37887E-04
   6  Prefactor     .10000E-03    1.9221       -.57414E-06** at limit **
   7  Prefactor     3.4352        11.396        .92551E-05   -.42997E-03
   8  Prefactor     47.000        40.045        .28609E-05    .44821E-03
   9  Prefactor     .10000E-03    28.438       -.16991E-05** at limit **
  10  Prefactor     .10010E-03    147.85       -.10814E-04** at limit **
  11  norm          13.915        7.5939       -.76106E-07    .82490E-04
  12  Prefactor     .10000E-03    23.052        .23243E-05** at limit **
  13  norm          .10000E-03    .87644        .20681E-06** at limit **
  14  Prefactor     .10000E-03    1.7366        .22810E-07** at limit **
  15  norm          12.500        20.612        .19739E-06   -.23674E-04
  16  Prefactor     .10000E-03    8.4656        .67039E-06** at limit **
  17  Prefactor     61.123        53.818       -.47389E-05   -.34882E-03
  18  Prefactor     6.0560        5.8410        .28937E-06   -.27668E-05
  19  Prefactor     8.9835        31.184       -.29079E-06   -.64029E-04
  20  norm          .10000E-03    2.5143        .48784E-07** at limit **
  21  Prefactor     18.744        13.794        .13483E-06   -.17043E-04
  22  Prefactor     .10000E-03    6.6082        .89501E-08** at limit **
  23  Prefactor     .10000E-03    2.6553        .78945E-07** at limit **
  24  norm          .10000E-03    8.1243       -.35825E-06** at limit **
  25  Prefactor     .10000E-03    77.731        .30991E-05** at limit **
  26  norm          4.0813        8.3347        .25143E-06   -.72003E-04
  27  Prefactor     .10000E-03    30.644       -.18858E-05** at limit **
  28  norm          .10000E-03    3.4111       -.39876E-08** at limit **
  29  Prefactor     10.719        20.738        .87250E-07   -.15561E-04
  30  Prefactor     6.2293        6.4754       -.44637E-08    .19495E-04
  31  Normalizat    1.4672        .21118       -.17038E-06   -.11786E-03
  32  Prefactor     .47168        .23409       -.15525E-05   -.62968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.08227
  norm       = 0.000100373
  norm       = 5.46432
  Prefactor  = 0.0001
  Prefactor  = 3.4352
  Prefactor  = 47.0004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100095
  norm       = 13.9153
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4997
  Prefactor  = 0.0001
  Prefactor  = 61.1234
  Prefactor  = 6.05604
  Prefactor  = 8.98347
  norm       = 0.0001
  Prefactor  = 18.7442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 4.08127
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 10.7189
  Prefactor  = 6.22934
  Normalizat = 1.46724
  Prefactor  = 0.471679
 **********
 **   18 **HESSE 
 **********

 FCN=   4419.949     FROM HESSE     STATUS=OK           653 CALLS     5018 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.0823        5.8992        .13390E-03   -1.5139    
   4  norm          .10037E-03    51.241        .37054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4643        5.7947        .15724E-03   -1.5240    
   6  Prefactor     .10000E-03    1.9700        .90385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4352        11.930        .10911E-02   -1.5337    
   8  Prefactor     47.000        41.378        .58503E-04   -1.4336    
   9  Prefactor     .10000E-03    28.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10010E-03    158.79        .20685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.915        7.5932        .10738E-03   -1.4962    
  12  Prefactor     .10000E-03    23.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3369        .11960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.7500        .85540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.500        20.694        .11326E-03   -1.5001    
  16  Prefactor     .10000E-03    8.4859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     61.123        55.113        .51310E-04   -1.4143    
  18  Prefactor     6.0560        5.8332        .14986E-03   -1.5216    
  19  Prefactor     8.9835        31.502        .13367E-03   -1.5108    
  20  norm          .10000E-03    2.5450        .10291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.744        13.803        .46244E-03   -1.4842    
  22  Prefactor     .10000E-03    6.6126        .16688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.7034        .10573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.1359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    78.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.0813        8.3272        .19946E-03   -1.5304    
  27  Prefactor     .10000E-03    30.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.4115        .11991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.719        20.706        .12234E-03   -1.5053    
  30  Prefactor     6.2293        6.4762        .16083E-03   -1.5209    
  31  Normalizat    1.4672        .24488        .19570E-03   -.78703    
  32  Prefactor     .47168        .26533        .37837E-03   -1.1329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00218e-08
Minuit parameter uncertainties:
  1  6.83591e-05
  2  3.09794e-05
  3  5.8996
  4  0.0087461
  5  5.79533
  6  3.55766e-05
  7  11.9378
  8  41.4029
  9  0.000325159
  10  0.00779619
  11  7.59371
  12  0.000383052
  13  5.13406e-06
  14  7.74978e-08
  15  20.7062
  16  6.74819e-05
  17  55.159
  18  5.83376
  19  31.5605
  20  2.53573e-06
  21  13.8058
  22  2.05515e-06
  23  3.51998e-06
  24  3.43984e-05
  25  0.000968999
  26  8.32959
  27  0.000350454
  28  6.46059e-07
  29  20.7197
  30  6.47692
  31  0.245082
  32  0.266025
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.250e+01  2.071e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  4.717e-01  2.660e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.467e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95397/likelihoodResults_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4419.58910523
delta logL = 0.360125665387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4419.56662162
delta logL = 0.382609271753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.149       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5315       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50841       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+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=   4419.567     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      248 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.152        19.519        .12578E-03   -.15005E-02
   2  alpha         3.5314        1.5256        .23283E-01   -.13146E-03
   3  Normalizat    1.4210        .23455        .19823E-03    .50796E-03
   4  Prefactor     .50834        .26579        .36529E-03    .28082E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1521
  alpha      = 3.53144
  Normalizat = 1.42099
  Prefactor  = 0.508343
 **********
 **   18 **HESSE 
 **********

 FCN=   4419.567     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.152        16.589        .50310E-05   -1.5071    
   2  alpha         3.5314        1.3291        .93130E-03    .42528    
   3  Normalizat    1.4210        .23485        .39646E-04   -.80023    
   4  Prefactor     .50834        .26584        .14612E-04   -1.1160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56592e-09
Minuit parameter uncertainties:
  1  16.597
  2  1.41922
  3  0.235028
  4  0.266493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95397': 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) = 4419.56662151
delta logL = 0.382609385507

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.015e+01  1.660e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  3.531e+00  1.419e+00  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  5.083e-01  2.665e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.421e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 209.928 40.215
Photon Index (Free Index): 3.53 +/- 1.42
Photon Flux (Free Index): 5.47e-08 +/- 5.64e-08
Energy Flux (Free Index): 9.66e-06 +/- 9.96e-06

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/95397/cmap_HighResolution_248918401_249177601_4FGL_J1359.7+4012_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-05', comment='SUCCESS', energy_flux2='9.66e-06', dlogl='3.83e-01', photon_flux2='5.47e-08', job_status='DONE', time_completed='2021-09-08 19:50:26.374268', photon_index_error2='1.42', photon_index2='3.53', ts='0.44', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='9.96e-06', EG='1.47', time_epoch_completed='1631155826.37', return_code='0', job_id='95397', GAL2='0.51', EG2='1.42', return_code2='0', photon_flux_error2='5.64e-08', ts2='1.24', photon_index='2.33' WHERE bin_id='37' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 95397: <4FGL_J1359.7+4012_daily_bin37> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin37> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 19:35:28 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:35: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:35:30 2021
Terminated at Wed Sep  8 19:50:27 2021
Results reported at Wed Sep  8 19:50:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin37 209.928 40.2153 248918401 249177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.7+4012 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

