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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin554
RA = 209.928, Dec = 40.2153
tmin = 382924801, tmax = 383184001
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='97180', job_status='RUN', time_executed='2021-09-08 19:40:54.456166', time_epoch_executed='1631155254.46' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97180

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97180/ft1_4FGL_J1359.7+4012_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97180/ft2_4FGL_J1359.7+4012_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97180/ft1_4FGL_J1359.7+4012_daily_bin554.fits outfile=/scratch/kocevski/97180/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin554.fits ra=209.928 dec=40.2153 rad=12.0 tmin=382924801.0 tmax=383184001.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 4.44
user 4.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/97180/ft2_4FGL_J1359.7+4012_daily_bin554.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/97180/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin554.fits evtable="EVENTS" outfile="/scratch/kocevski/97180/ft1_filtered_4FGL_J1359.7+4012_daily_bin554.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97180/ft1_filtered_4FGL_J1359.7+4012_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/97180/ft2_4FGL_J1359.7+4012_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/97180/ltcube_382924801_383184001_4FGL_J1359.7+4012_daily_bin554.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/97180/ft2_4FGL_J1359.7+4012_daily_bin554.fits
.....................!
real 11.70
user 11.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97180/ft1_filtered_4FGL_J1359.7+4012_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/97180/ft2_4FGL_J1359.7+4012_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/97180/ltcube_382924801_383184001_4FGL_J1359.7+4012_daily_bin554.fits outfile=/scratch/kocevski/97180/expmap_382924801_383184001_4FGL_J1359.7+4012_daily_bin554.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/97180/ltcube_382924801_383184001_4FGL_J1359.7+4012_daily_bin554.fits
.....................!
real 191.65
user 185.91
sys 5.38

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/97180/ft1_filtered_4FGL_J1359.7+4012_daily_bin554.fits scfile=/scratch/kocevski/97180/ft2_4FGL_J1359.7+4012_daily_bin554.fits outfile=/scratch/kocevski/97180/cmap_382924801_383184001_4FGL_J1359.7+4012_daily_bin554.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97180/ft1_filtered_4FGL_J1359.7+4012_daily_bin554.fits scfile=/scratch/kocevski/97180/ft2_4FGL_J1359.7+4012_daily_bin554.fits outfile=/scratch/kocevski/97180/cmap_HighResolution_382924801_383184001_4FGL_J1359.7+4012_daily_bin554.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/97180/ft1_filtered_4FGL_J1359.7+4012_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/97180/ft2_4FGL_J1359.7+4012_daily_bin554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/97180/Model_4FGL_J1359.7+4012_daily_bin554.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/97180/ft1_filtered_4FGL_J1359.7+4012_daily_bin554.fits.....................!
real 48.41
user 47.02
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.974       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.360       1.0000         .10000E-03   10000.    
     3 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.7183       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.038       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0109       1.0000         .10000E-03   10000.    
    15 'norm      '    11.275       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9768       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67284       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.4675       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .26999E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .79425E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.7505       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2720       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .72588       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=   6025.932     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     4350 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.974        46.855        .26047E-06    .38556E-05
   2  Prefactor     10.358        13.397        .10245E-05    .37942E-03
   3  norm          .10000E-03    3.6182       -.40904E-06** at limit **
   4  norm          8.7173        19.719        .70334E-06    .21112E-04
   5  norm          .10000E-03    2.0749        .91240E-08** at limit **
   6  Prefactor     .10000E-03    1.1669        .69196E-07** at limit **
   7  Prefactor     .10000E-03    2.6618       -.10790E-07** at limit **
   8  Prefactor     .10000E-03    12.362       -.26234E-06** at limit **
   9  Prefactor     .10000E-03    11.122       -.68719E-06** at limit **
  10  Prefactor     .10000E-03    8.8169        .17857E-06** at limit **
  11  norm          .10000E-03    5.4534        .84433E-07** at limit **
  12  Prefactor     .10000E-03    43.831        .21440E-06** at limit **
  13  norm          11.037        2.3161        .37008E-07   -.49105E-04
  14  Prefactor     3.0125        3.9719        .34677E-05    .25235E-02
  15  norm          11.274        16.072        .44613E-06   -.15924E-04
  16  Prefactor     8.9766        8.7955       -.51534E-06   -.26288E-03
  17  Prefactor     .10000E-03    41.756       -.94153E-06** at limit **
  18  Prefactor     .67289        2.2594        .62290E-06    .36010E-03
  19  Prefactor     .10000E-03    12.559       -.81729E-07** at limit **
  20  norm          7.4678        3.7681        .28069E-08   -.28472E-04
  21  Prefactor     .10000E-03    2.5716        .33541E-08** at limit **
  22  Prefactor     .10000E-03    4.1112        .32232E-06** at limit **
  23  Prefactor     .18493E-01    6.1438       -.59433E-05    .16158E-02
  24  norm          .10000E-03    3.5062        .39470E-06** at limit **
  25  Prefactor     .10000E-03    17.926        .18661E-05** at limit **
  26  norm          .10000E-03    2.8836        .22723E-06** at limit **
  27  Prefactor     .10000E-03    24.760       -.16221E-05** at limit **
  28  norm          4.7500        5.6399       -.65199E-07   -.84538E-04
  29  Prefactor     .10000E-03    6.2728       -.24662E-06** at limit **
  30  Prefactor     .10000E-03    7.6548        .42369E-06** at limit **
  31  Normalizat    1.2721        .17322       -.75611E-06    .15792E-03
  32  Prefactor     .72580        .20331       -.43652E-06    .20331E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.9737
  Prefactor  = 10.3584
  norm       = 0.0001
  norm       = 8.71726
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0375
  Prefactor  = 3.01249
  norm       = 11.2743
  Prefactor  = 8.97655
  Prefactor  = 0.0001
  Prefactor  = 0.672889
  Prefactor  = 0.0001
  norm       = 7.46776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0184926
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.75002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27206
  Prefactor  = 0.725799
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.932     FROM HESSE     STATUS=OK           657 CALLS     5007 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.974        46.832        .66817E-04   -1.4508    
   2  Prefactor     10.358        13.466        .12448E-03   -1.5064    
   3  norm          .10000E-03    3.6720        .14381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.7173        19.710        .13575E-03   -1.5117    
   5  norm          .10000E-03    2.0843        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1843        .81875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6629        .12369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.6081        .35389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.037        2.3198        .51725E-04   -1.5043    
  14  Prefactor     3.0125        4.0849        .87289E-03   -1.5361    
  15  norm          11.274        16.092        .11931E-03   -1.5036    
  16  Prefactor     8.9766        8.7998        .66887E-03   -1.5109    
  17  Prefactor     .10000E-03    42.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .67289        2.2944        .20765E-03   -1.5544    
  19  Prefactor     .10000E-03    12.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.4678        3.7662        .10354E-03   -1.5161    
  21  Prefactor     .10000E-03    2.5731        .12157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1190        .15371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .18493E-01    2.9220        .34335E-01   -1.5681    
  24  norm          .10000E-03    3.5082        .14198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    28.553        .25350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    24.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.7500        5.6284        .92303E-03   -1.5272    
  29  Prefactor     .10000E-03    6.2792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.7544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2721        .20223        .20696E-03   -.84404    
  32  Prefactor     .72580        .23605        .31872E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83662e-09
Minuit parameter uncertainties:
  1  46.8795
  2  13.4703
  3  1.30932e-05
  4  19.7245
  5  1.82445e-06
  6  5.8452e-06
  7  1.48997e-06
  8  8.77246e-06
  9  3.68543e-05
  10  1.3075e-05
  11  3.06854e-05
  12  2.85524e-05
  13  2.31981
  14  4.0853
  15  16.0978
  16  8.80107
  17  5.88355e-05
  18  2.29468
  19  1.2525e-05
  20  3.76633
  21  8.66502e-08
  22  1.00496e-05
  23  0.463671
  24  1.33502e-05
  25  8.99626e-05
  26  0.000335783
  27  0.000118266
  28  5.62905
  29  7.77471e-06
  30  5.80974e-06
  31  0.202358
  32  0.236381
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.127e+01  1.610e+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:  7.258e-01  2.364e-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.272e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/97180/likelihoodResults_382924801_383184001_4FGL_J1359.7+4012_daily_bin554.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) = 6025.48951698
delta logL = 0.442972207511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6025.47702703
delta logL = 0.455462161992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0015       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5461       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75699       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=   6025.477     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      269 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9972        17.833        .13359E-03    .21646E-02
   2  alpha         3.5454        1.7011        .26564E-01    .16573E-03
   3  Normalizat    1.2322        .20307        .20964E-03   -.73131E-03
   4  Prefactor     .75732        .23932        .31255E-03   -.68239E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.99723
  alpha      = 3.54544
  Normalizat = 1.2322
  Prefactor  = 0.757315
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.477     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9972        14.132        .53436E-05   -1.5108    
   2  alpha         3.5454        1.4096        .10626E-02    .43143    
   3  Normalizat    1.2322        .20286        .41927E-04   -.85614    
   4  Prefactor     .75732        .23868        .62510E-04   -1.0132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2958e-09
Minuit parameter uncertainties:
  1  14.1371
  2  1.5207
  3  0.202985
  4  0.239007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97180': 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) = 6025.47702472
delta logL = 0.455464472633

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  8.997e+00  1.414e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  3.545e+00  1.521e+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:  7.573e-01  2.390e-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.232e+00  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 209.928 40.215
Photon Index (Free Index): 3.55 +/- 1.52
Photon Flux (Free Index): 4.92e-08 +/- 4.72e-08
Energy Flux (Free Index): 8.65e-06 +/- 7.95e-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/97180/cmap_HighResolution_382924801_383184001_4FGL_J1359.7+4012_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', comment='SUCCESS', energy_flux2='8.65e-06', dlogl='4.55e-01', photon_flux2='4.92e-08', job_status='DONE', time_completed='2021-09-08 19:56:53.343944', photon_index_error2='1.52', photon_index2='3.55', ts='0.59', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='8.64e-08', energy_flux_error2='7.95e-06', EG='1.27', time_epoch_completed='1631156213.34', return_code='0', job_id='97180', GAL2='0.76', EG2='1.23', return_code2='0', photon_flux_error2='4.72e-08', ts2='1.54', photon_index='2.33' WHERE bin_id='554' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:56:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 97180: <4FGL_J1359.7+4012_daily_bin554> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin554> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:40:37 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:40:39 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:40:39 2021
Terminated at Wed Sep  8 19:56:56 2021
Results reported at Wed Sep  8 19:56:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin554 209.928 40.2153 382924801 383184001 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 :                                   954.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            979 sec.

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

