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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1202
RA = 209.928, Dec = 40.2153
tmin = 550886401, tmax = 551145601
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='100336', job_status='RUN', time_executed='2021-09-08 19:54:23.647545', time_epoch_executed='1631156063.65' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100336/ft1_4FGL_J1359.7+4012_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100336/ft2_4FGL_J1359.7+4012_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100336/ft1_4FGL_J1359.7+4012_daily_bin1202.fits outfile=/scratch/kocevski/100336/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1202.fits ra=209.928 dec=40.2153 rad=12.0 tmin=550886401.0 tmax=551145601.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.72
user 3.51
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100336/ft1_filtered_4FGL_J1359.7+4012_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/100336/ft2_4FGL_J1359.7+4012_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/100336/ltcube_550886401_551145601_4FGL_J1359.7+4012_daily_bin1202.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/100336/ft2_4FGL_J1359.7+4012_daily_bin1202.fits
.....................!
real 12.00
user 11.67
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100336/ft1_filtered_4FGL_J1359.7+4012_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/100336/ft2_4FGL_J1359.7+4012_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/100336/ltcube_550886401_551145601_4FGL_J1359.7+4012_daily_bin1202.fits outfile=/scratch/kocevski/100336/expmap_550886401_551145601_4FGL_J1359.7+4012_daily_bin1202.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/100336/ltcube_550886401_551145601_4FGL_J1359.7+4012_daily_bin1202.fits
.....................!
real 190.08
user 185.52
sys 4.20

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/100336/ft1_filtered_4FGL_J1359.7+4012_daily_bin1202.fits scfile=/scratch/kocevski/100336/ft2_4FGL_J1359.7+4012_daily_bin1202.fits outfile=/scratch/kocevski/100336/cmap_550886401_551145601_4FGL_J1359.7+4012_daily_bin1202.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/100336/ft1_filtered_4FGL_J1359.7+4012_daily_bin1202.fits scfile=/scratch/kocevski/100336/ft2_4FGL_J1359.7+4012_daily_bin1202.fits outfile=/scratch/kocevski/100336/cmap_HighResolution_550886401_551145601_4FGL_J1359.7+4012_daily_bin1202.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100336/ft1_filtered_4FGL_J1359.7+4012_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/100336/ft2_4FGL_J1359.7+4012_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100336/Model_4FGL_J1359.7+4012_daily_bin1202.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/100336/ft1_filtered_4FGL_J1359.7+4012_daily_bin1202.fits.......................!
real 24.70
user 23.46
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.514       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    130.86       1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.968       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10495E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    24.346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.9580       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12123E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.5016       1.0000         .10000E-03   10000.    
    24 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    12.603       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.4641       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91563       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.5779       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=   1910.327     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4246 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.484        116.01       -.10384E-06   -.13740E-04
   2  Prefactor     .10000E-03    13.554        .63225E-07** at limit **
   3  norm          .10000E-03    6.5812        .13216E-06** at limit **
   4  norm          .10000E-03    14.522       -.17796E-06** at limit **
   5  norm          .10000E-03    6.1078        .87626E-07** at limit **
   6  Prefactor     .10000E-03    4.9117        .75434E-06** at limit **
   7  Prefactor     .10000E-03    25.104        .86591E-06** at limit **
   8  Prefactor     130.87        96.430       -.78633E-06    .73934E-05
   9  Prefactor     61.034        126.76        .14251E-05    .19021E-04
  10  Prefactor     .10000E-03    360.47        .19328E-05** at limit **
  11  norm          24.346        14.007        .35802E-09   -.20503E-05
  12  Prefactor     .10000E-03    45.309       -.90099E-07** at limit **
  13  norm          4.9587        3.7702        .15517E-07   -.29934E-05
  14  Prefactor     .10000E-03    5.4768       -.91447E-08** at limit **
  15  norm          .10000E-03    8.9577        .21712E-07** at limit **
  16  Prefactor     .10000E-03    19.806       -.15777E-06** at limit **
  17  Prefactor     .10000E-03    55.780        .38878E-06** at limit **
  18  Prefactor     .10000E-03    4.7617       -.81977E-08** at limit **
  19  Prefactor     .10000E-03    207.01       -.45777E-06** at limit **
  20  norm          .10000E-03    12.831       -.20509E-06** at limit **
  21  Prefactor     .10000E-03    33.688       -.38101E-06** at limit **
  22  Prefactor     .10000E-03    29.265       -.10782E-06** at limit **
  23  Prefactor     8.5031        10.554        .23526E-05   -.37717E-04
  24  norm          .10000E-03    13.185        .18529E-07** at limit **
  25  Prefactor     .10000E-03    40.240       -.32843E-06** at limit **
  26  norm          .10000E-03    3.5227       -.18917E-07** at limit **
  27  Prefactor     .10000E-03    27.826        .90296E-07** at limit **
  28  norm          12.604        14.873       -.14352E-07    .30558E-06
  29  Prefactor     8.4621        39.107        .62223E-07   -.13269E-05
  30  Prefactor     .10000E-03    10.663       -.81194E-07** at limit **
  31  Normalizat    .91549        .35856       -.22193E-05    .95241E-05
  32  Prefactor     1.5780        .43319        .68190E-06   -.25436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.484
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 130.872
  Prefactor  = 61.0344
  Prefactor  = 0.0001
  norm       = 24.3459
  Prefactor  = 0.0001
  norm       = 4.95866
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.50313
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6042
  Prefactor  = 8.46214
  Prefactor  = 0.0001
  Normalizat = 0.915486
  Prefactor  = 1.57795
 **********
 **   18 **HESSE 
 **********

 FCN=   1910.327     FROM HESSE     STATUS=OK           641 CALLS     4887 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.484        116.08        .49583E-04   -1.4088    
   2  Prefactor     .10000E-03    13.559        .15720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.6248        .10952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    14.524        .16270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.1161        .10550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9653        .94502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     130.87        96.678        .17599E-03   -1.3415    
   9  Prefactor     61.034        126.53        .25693E-03   -1.4144    
  10  Prefactor     .10000E-03    363.38        .20730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          24.346        14.006        .81184E-04   -1.4721    
  12  Prefactor     .10000E-03    45.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.9587        3.7659        .70129E-04   -1.5263    
  14  Prefactor     .10000E-03    5.4960        .99884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.9590        .12778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    55.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7642        .93153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    210.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    13.176        .30586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.5031        10.559        .68742E-03   -1.5125    
  24  norm          .10000E-03    13.187        .15504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    40.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.5234        .80124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    27.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          12.604        14.871        .11283E-03   -1.4998    
  29  Prefactor     8.4621        39.205        .13779E-03   -1.5126    
  30  Prefactor     .10000E-03    10.670        .13940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .91549        .42732        .27791E-03   -.95918    
  32  Prefactor     1.5780        .52162        .27608E-03   -.75379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94658e-11
Minuit parameter uncertainties:
  1  116.484
  2  1.00209e-05
  3  2.58324e-06
  4  1.68961e-05
  5  7.51978e-06
  6  3.1936e-06
  7  5.89417e-05
  8  96.795
  9  127.097
  10  0.000424882
  11  14.0082
  12  9.38633e-05
  13  3.76606
  14  1.2804e-06
  15  8.34691e-06
  16  4.80507e-05
  17  0.000313541
  18  2.32095e-06
  19  0.000396327
  20  2.89863e-05
  21  4.87883e-05
  22  4.75865e-05
  23  10.5616
  24  1.53017e-05
  25  0.000120707
  26  4.60039e-07
  27  5.57424e-05
  28  14.8749
  29  36.4675
  30  1.70917e-05
  31  0.428914
  32  0.523417
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  8.347e-06  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:  1.578e+00  5.234e-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:  9.155e-01  4.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/100336/likelihoodResults_550886401_551145601_4FGL_J1359.7+4012_daily_bin1202.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): 102
logL (Free Index) = 1910.3275434
delta logL = -0.000460616775626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1910.32708276
delta logL = 2.12069153349e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3180       1.0000          .0000       5.0000    
     3 'Normalizat'    .91548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5780       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=   1910.327     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      238 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.554        .12835E-01** at limit **
   2  alpha         1.6672        3.9100        .16516E-01   -.63672E-08
   3  Normalizat    .91548        .40933        .27791E-03    .42851E-05
   4  Prefactor     1.5780        .51687        .27608E-03    .54357E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.66723
  Normalizat = 0.915484
  Prefactor  = 1.57795
 **********
 **   18 **HESSE 
 **********

 FCN=   1910.327     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.549        .13864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6672        3.7657        .66064E-03   -.33960    
   3  Normalizat    .91548        .40984        .11116E-04   -.95918    
   4  Prefactor     1.5780        .51751        .11043E-04   -.75379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86522e-12
Minuit parameter uncertainties:
  1  3.19147e-05
  2  471.386
  3  0.411245
  4  0.519259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100336': 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) = 1910.32708194
delta logL = 8.41155724629e-07

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  3.191e-05  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.667e+00  4.714e+02  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:  1.578e+00  5.193e-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:  9.155e-01  4.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.928 40.215

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/100336/cmap_HighResolution_550886401_551145601_4FGL_J1359.7+4012_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-05', job_status='DONE', photon_flux_upper_limit='9.44e-08', time_completed='2021-09-08 20:03:10.360786', job_id='100336', GAL2='1.58', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631156590.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.58', dlogl='8.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1202' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:03:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 100336: <4FGL_J1359.7+4012_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1202> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:50:37 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:50:38 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:50:38 2021
Terminated at Wed Sep  8 20:03:10 2021
Results reported at Wed Sep  8 20:03:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1202 209.928 40.2153 550886401 551145601 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 :                                   519.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

