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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin315
RA = 209.928, Dec = 40.2153
tmin = 320976001, tmax = 321235201
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='95858', job_status='RUN', time_executed='2021-09-08 19:36:29.304041', time_epoch_executed='1631154989.3' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95858

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95858/ft1_4FGL_J1359.7+4012_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95858/ft2_4FGL_J1359.7+4012_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95858/ft1_4FGL_J1359.7+4012_daily_bin315.fits outfile=/scratch/kocevski/95858/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin315.fits ra=209.928 dec=40.2153 rad=12.0 tmin=320976001.0 tmax=321235201.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.51
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95858/ft1_filtered_4FGL_J1359.7+4012_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/95858/ft2_4FGL_J1359.7+4012_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/95858/ltcube_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.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/95858/ft2_4FGL_J1359.7+4012_daily_bin315.fits
.....................!
real 12.19
user 11.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95858/ft1_filtered_4FGL_J1359.7+4012_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/95858/ft2_4FGL_J1359.7+4012_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/95858/ltcube_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.fits outfile=/scratch/kocevski/95858/expmap_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.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/95858/ltcube_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.fits
.....................!
real 190.78
user 185.77
sys 4.64

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/95858/ft1_filtered_4FGL_J1359.7+4012_daily_bin315.fits scfile=/scratch/kocevski/95858/ft2_4FGL_J1359.7+4012_daily_bin315.fits outfile=/scratch/kocevski/95858/cmap_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95858/ft1_filtered_4FGL_J1359.7+4012_daily_bin315.fits scfile=/scratch/kocevski/95858/ft2_4FGL_J1359.7+4012_daily_bin315.fits outfile=/scratch/kocevski/95858/cmap_HighResolution_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/95858/ft1_filtered_4FGL_J1359.7+4012_daily_bin315.fits', '/scratch/kocevski/95858/ft2_4FGL_J1359.7+4012_daily_bin315.fits', expMap='/scratch/kocevski/95858/expmap_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.fits', expCube='/scratch/kocevski/95858/ltcube_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/95858/Model_4FGL_J1359.7+4012_daily_bin315.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/95858/ft1_filtered_4FGL_J1359.7+4012_daily_bin315.fits
Spacecraft file(s): /scratch/kocevski/95858/ft2_4FGL_J1359.7+4012_daily_bin315.fits
Exposure map: /scratch/kocevski/95858/expmap_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.fits
Exposure cube: /scratch/kocevski/95858/ltcube_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/95858/Model_4FGL_J1359.7+4012_daily_bin315.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) = 5966.79146144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .15468E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5965       1.0000         .10000E-03   10000.    
     5 'norm      '    5.1943       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0257       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5550       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .18856E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1667       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8671       1.0000         .10000E-03   10000.    
    15 'norm      '    13.002       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.469       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.939       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4105       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0904       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2542       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    43.680       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2212       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92471       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=   5966.788     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4343 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.377        .71434E-06** at limit **
   2  Prefactor     .10000E-03    17.436       -.36472E-05** at limit **
   3  norm          .10009E-03    5.4855        .16922E-05** at limit **
   4  norm          3.5938        10.985        .12295E-06   -.46131E-03
   5  norm          5.1940        4.7042        .10743E-05    .13753E-03
   6  Prefactor     3.0228        2.6678        .69585E-06   -.28533E-02
   7  Prefactor     .10000E-03    13.241       -.98930E-06** at limit **
   8  Prefactor     .10000E-03    22.949        .58281E-05** at limit **
   9  Prefactor     3.3246        308.30       -.88239E-05   -.15758E-04
  10  Prefactor     .10000E-03    15.176        .38121E-05** at limit **
  11  norm          .10000E-03    2.9772       -.14131E-06** at limit **
  12  Prefactor     .10000E-03    18.333       -.21968E-05** at limit **
  13  norm          2.1666        1.5485       -.44600E-07   -.16542E-03
  14  Prefactor     4.8669        5.5894       -.20152E-06   -.10556E-03
  15  norm          13.000        13.165       -.15315E-06    .45892E-05
  16  Prefactor     .10000E-03    5.8724        .73078E-07** at limit **
  17  Prefactor     37.463        40.880        .27193E-06    .18883E-04
  18  Prefactor     .10000E-03    2.0360       -.47937E-07** at limit **
  19  Prefactor     23.936        20.275        .37782E-05    .20813E-03
  20  norm          2.4104        2.2541        .70872E-07    .11783E-03
  21  Prefactor     1.0812        16.431       -.57740E-05   -.13288E-03
  22  Prefactor     .10000E-03    18.471       -.16803E-05** at limit **
  23  Prefactor     1.2543        3.0871        .11361E-06   -.12449E-03
  24  norm          .10000E-03    5.1119        .86819E-07** at limit **
  25  Prefactor     .10000E-03    24.817       -.96094E-05** at limit **
  26  norm          .10000E-03    2.3064        .31140E-07** at limit **
  27  Prefactor     43.676        43.242       -.24255E-05   -.21241E-04
  28  norm          .10000E-03    3.9832       -.98230E-08** at limit **
  29  Prefactor     .10000E-03    7.5911        .26902E-06** at limit **
  30  Prefactor     .10000E-03    4.5783       -.16856E-07** at limit **
  31  Normalizat    1.2212        .17921       -.71200E-06    .24915E-04
  32  Prefactor     .92475        .20846        .63905E-06   -.57356E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100086
  norm       = 3.5938
  norm       = 5.19402
  Prefactor  = 3.02283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.32462
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.16663
  Prefactor  = 4.86687
  norm       = 13.0005
  Prefactor  = 0.0001
  Prefactor  = 37.4625
  Prefactor  = 0.0001
  Prefactor  = 23.9359
  norm       = 2.41043
  Prefactor  = 1.08122
  Prefactor  = 0.000100001
  Prefactor  = 1.25432
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 43.6758
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22115
  Prefactor  = 0.924753
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.788     FROM HESSE     STATUS=OK           655 CALLS     4998 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10009E-03    21.958        .33469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5938        11.667        .10654E-02   -1.5329    
   5  norm          5.1940        4.6962        .15427E-03   -1.5252    
   6  Prefactor     3.0228        4.7076        .93518E-03   -1.5360    
   7  Prefactor     .10000E-03    13.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3246        325.15        .21436E-03   -1.5343    
  10  Prefactor     .10000E-03    15.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.0417        .25874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1666        1.5425        .77322E-04   -1.5414    
  14  Prefactor     4.8669        5.5938        .18233E-03   -1.5267    
  15  norm          13.000        13.168        .11109E-03   -1.4987    
  16  Prefactor     .10000E-03    5.8756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.463        40.895        .65476E-04   -1.4483    
  18  Prefactor     .10000E-03    2.0433        .10758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.936        20.396        .81869E-04   -1.4729    
  20  norm          2.4104        2.2607        .10908E-03   -1.5397    
  21  Prefactor     1.0812        16.724        .45814E-03   -1.5500    
  22  Prefactor     .10000E-03    18.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2543        3.0695        .20441E-03   -1.5484    
  24  norm          .10000E-03    5.1159        .17055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    24.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.3249        .11455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     43.676        43.226        .60660E-04   -1.4385    
  28  norm          .10000E-03    3.9953        .15056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.6060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.5929        .16141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2212        .21848        .22241E-03   -.85952    
  32  Prefactor     .92475        .25147        .29930E-03   -.95281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04136e-08
Minuit parameter uncertainties:
  1  3.68084e-05
  2  0.000178693
  3  0.00274692
  4  11.6747
  5  4.69658
  6  4.70821
  7  3.5653e-05
  8  0.000192862
  9  66.1293
  10  0.000111399
  11  1.26125e-05
  12  7.84641e-05
  13  1.54254
  14  5.59435
  15  13.1706
  16  1.31379e-05
  17  40.9258
  18  8.69827e-06
  19  20.4021
  20  2.26073
  21  8.50712
  22  0.000303761
  23  3.06987
  24  1.73509e-05
  25  0.000370109
  26  5.25239e-06
  27  43.2566
  28  5.28046e-07
  29  8.69253e-06
  30  2.38456e-06
  31  0.218642
  32  0.251789
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.300e+01  1.317e+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:  9.248e-01  2.518e-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.221e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 7.18e-06 +/- 7.27e-06

TS (Fixed Index): 1.62
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 8.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95858/likelihoodResults_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.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) = 5966.19011857
delta logL = 0.598332280701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5966.13474453
delta logL = 0.653706321457

Fit tolerance = 1e-08

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

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

 FCN=   5966.135     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      217 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9220        8.1130        .33489E-02    .12798E-05
   2  alpha         1.2068        .63093        .50000       -.29303E-04
   3  Normalizat    1.2424        .17206        .49918E-01    .24871E-05
   4  Prefactor     .90663        .20559        .68198E-01    .15911E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.92202
  alpha      = 1.20677
  Normalizat = 1.24241
  Prefactor  = 0.906631
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.135     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9220        10.836        .13396E-03   -1.5110    
   2  alpha         1.2068        .85278        .22339E-01   -.54368    
   3  Normalizat    1.2424        .20821        .22069E-03   -.85302    
   4  Prefactor     .90663        .24843        .30170E-03   -.95910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90804e-12
Minuit parameter uncertainties:
  1  10.8387
  2  0.877145
  3  0.208347
  4  0.248736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95858': 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) = 5966.13473876
delta logL = 0.653712086853

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  8.922e+00  1.084e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.207e+00  8.771e-01  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:  9.066e-01  2.487e-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.242e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 209.928 40.215
Photon Index (Free Index): 1.21 +/- 0.88
Photon Flux (Free Index): 1.12e-08 +/- 1.28e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.16e-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/95858/cmap_HighResolution_320976001_321235201_4FGL_J1359.7+4012_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-05', comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='1.09e-05', photon_flux_error='2.44e-08', dlogl='6.54e-01', energy_flux='7.18e-06', photon_flux2='1.12e-08', job_status='DONE', time_completed='2021-09-08 19:52:02.696323', photon_index_error2='0.88', photon_index2='1.21', ts='1.62', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='8.45e-08', energy_flux_error2='1.16e-05', EG='1.22', time_epoch_completed='1631155922.7', return_code='0', job_id='95858', GAL2='0.91', EG2='1.24', return_code2='0', energy_flux_error='7.27e-06', photon_flux_error2='1.28e-08', ts2='2.94', photon_index='2.33' WHERE bin_id='315' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 95858: <4FGL_J1359.7+4012_daily_bin315> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin315> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 19:36:10 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:36:13 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:36:13 2021
Terminated at Wed Sep  8 19:52:03 2021
Results reported at Wed Sep  8 19:52:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin315 209.928 40.2153 320976001 321235201 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 :                                   912.14 sec.
    Max Memory :                                 1222 MB
    Average Memory :                             329.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

