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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1413
RA = 209.928, Dec = 40.2153
tmin = 605577601, tmax = 605836801
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='101774', job_status='RUN', time_executed='2021-09-08 19:55:59.570875', time_epoch_executed='1631156159.57' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101774/ft1_4FGL_J1359.7+4012_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101774/ft2_4FGL_J1359.7+4012_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101774/ft1_4FGL_J1359.7+4012_daily_bin1413.fits outfile=/scratch/kocevski/101774/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1413.fits ra=209.928 dec=40.2153 rad=12.0 tmin=605577601.0 tmax=605836801.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 5.09
user 4.80
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101774/ft1_filtered_4FGL_J1359.7+4012_daily_bin1413.fits" evtable="EVENTS" scfile=/scratch/kocevski/101774/ft2_4FGL_J1359.7+4012_daily_bin1413.fits sctable="SC_DATA" outfile=/scratch/kocevski/101774/ltcube_605577601_605836801_4FGL_J1359.7+4012_daily_bin1413.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/101774/ft2_4FGL_J1359.7+4012_daily_bin1413.fits
.....................!
real 11.96
user 11.51
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101774/ft1_filtered_4FGL_J1359.7+4012_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/101774/ft2_4FGL_J1359.7+4012_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/101774/ltcube_605577601_605836801_4FGL_J1359.7+4012_daily_bin1413.fits outfile=/scratch/kocevski/101774/expmap_605577601_605836801_4FGL_J1359.7+4012_daily_bin1413.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/101774/ltcube_605577601_605836801_4FGL_J1359.7+4012_daily_bin1413.fits
.....................!
real 191.41
user 186.09
sys 4.85

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/101774/ft1_filtered_4FGL_J1359.7+4012_daily_bin1413.fits scfile=/scratch/kocevski/101774/ft2_4FGL_J1359.7+4012_daily_bin1413.fits outfile=/scratch/kocevski/101774/cmap_605577601_605836801_4FGL_J1359.7+4012_daily_bin1413.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101774/ft1_filtered_4FGL_J1359.7+4012_daily_bin1413.fits scfile=/scratch/kocevski/101774/ft2_4FGL_J1359.7+4012_daily_bin1413.fits outfile=/scratch/kocevski/101774/cmap_HighResolution_605577601_605836801_4FGL_J1359.7+4012_daily_bin1413.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101774/ft1_filtered_4FGL_J1359.7+4012_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/101774/ft2_4FGL_J1359.7+4012_daily_bin1413.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101774/Model_4FGL_J1359.7+4012_daily_bin1413.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/101774/ft1_filtered_4FGL_J1359.7+4012_daily_bin1413.fits.....................!
real 49.55
user 48.21
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.187       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.337       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.889       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4952       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0624       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.833       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      '    .21020       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2554       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3364       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.947       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1487       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.861       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.482       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    74.087       1.0000         .10000E-03   10000.    
    26 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.1189       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0334       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84861       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=   5943.094     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4349 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.176        51.468       -.52777E-06   -.23072E-04
   2  Prefactor     14.336        16.446        .19752E-06   -.10739E-04
   3  norm          .10000E-03    1.9528       -.11976E-08** at limit **
   4  norm          .10000E-03    5.2312        .49605E-07** at limit **
   5  norm          .10000E-03    2.2187       -.27113E-06** at limit **
   6  Prefactor     11.889        5.5861        .96765E-07   -.70245E-04
   7  Prefactor     9.4937        19.093        .81084E-07   -.17887E-04
   8  Prefactor     5.0238        44.306       -.24309E-05   -.41305E-04
   9  Prefactor     .10000E-03    17.929       -.68429E-06** at limit **
  10  Prefactor     46.872        40.546        .53484E-06   -.38557E-04
  11  norm          .10000E-03    2.2068        .13602E-06** at limit **
  12  Prefactor     .10000E-03    38.847       -.10007E-06** at limit **
  13  norm          .21031        1.0814        .72026E-06   -.50894E-03
  14  Prefactor     1.2541        6.8886        .34869E-05    .14809E-05
  15  norm          .10000E-03    22.083        .14265E-05** at limit **
  16  Prefactor     .10000E-03    4.6761        .25803E-07** at limit **
  17  Prefactor     .10000E-03    20.913        .55028E-06** at limit **
  18  Prefactor     3.3360        3.5769        .16742E-06   -.42046E-05
  19  Prefactor     15.946        21.052        .29076E-06   -.57222E-04
  20  norm          5.1486        3.9092        .12285E-06   -.17659E-04
  21  Prefactor     12.862        10.210        .12658E-06   -.24735E-04
  22  Prefactor     .10000E-03    6.9324       -.10062E-06** at limit **
  23  Prefactor     36.482        7.3083        .61638E-07   -.11527E-03
  24  norm          .10000E-03    4.6058       -.59311E-07** at limit **
  25  Prefactor     74.083        34.641        .27650E-06   -.41409E-04
  26  norm          .10000E-03    3.8612        .75910E-07** at limit **
  27  Prefactor     .10000E-03    16.753       -.88862E-06** at limit **
  28  norm          .10000E-03    4.6581        .49055E-07** at limit **
  29  Prefactor     4.1180        9.2455        .42815E-06   -.52683E-05
  30  Prefactor     .10000E-03    12.129        .74755E-06** at limit **
  31  Normalizat    1.0333        .19482       -.22482E-05   -.24789E-03
  32  Prefactor     .84876        .20822        .25559E-06   -.26987E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.1761
  Prefactor  = 14.3358
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8891
  Prefactor  = 9.49372
  Prefactor  = 5.0238
  Prefactor  = 0.0001
  Prefactor  = 46.8719
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.210312
  Prefactor  = 1.25412
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33603
  Prefactor  = 15.9458
  norm       = 5.14862
  Prefactor  = 12.8622
  Prefactor  = 0.0001
  Prefactor  = 36.4817
  norm       = 0.0001
  Prefactor  = 74.0832
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.11796
  Prefactor  = 0.0001
  Normalizat = 1.03332
  Prefactor  = 0.848761
 **********
 **   18 **HESSE 
 **********

 FCN=   5943.094     FROM HESSE     STATUS=OK           655 CALLS     5004 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.176        51.481        .53996E-04   -1.4221    
   2  Prefactor     14.336        16.444        .10578E-03   -1.4951    
   3  norm          .10000E-03    1.9550        .10517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.2344        .17222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.2435        .11188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.889        5.5949        .10846E-03   -1.5018    
   7  Prefactor     9.4937        19.059        .13005E-03   -1.5092    
   8  Prefactor     5.0238        45.351        .17871E-03   -1.5260    
   9  Prefactor     .10000E-03    17.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.872        40.788        .58591E-04   -1.4338    
  11  norm          .10000E-03    2.2544        .11190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .21031        1.7426        .14169E-02   -1.5616    
  14  Prefactor     1.2541        7.0174        .37222E-03   -1.5484    
  15  norm          .10000E-03    22.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6773        .16281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3360        3.5726        .14452E-03   -1.5343    
  19  Prefactor     15.946        21.182        .10030E-03   -1.4909    
  20  norm          5.1486        3.9060        .12761E-03   -1.5254    
  21  Prefactor     12.862        10.214        .11169E-03   -1.4991    
  22  Prefactor     .10000E-03    6.9506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     36.482        7.3162        .66352E-04   -1.4499    
  24  norm          .10000E-03    4.6077        .16157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     74.083        34.809        .46646E-04   -1.3984    
  26  norm          .10000E-03    3.9426        .14795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.6824        .16248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.1180        9.2326        .19863E-03   -1.5302    
  30  Prefactor     .10000E-03    12.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0333        .23221        .23199E-03   -.91922    
  32  Prefactor     .84876        .25203        .30234E-03   -.97955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03194e-10
Minuit parameter uncertainties:
  1  51.523
  2  16.4491
  3  6.85334e-07
  4  5.85449e-06
  5  6.77581e-06
  6  5.59519
  7  19.0707
  8  30.2185
  9  2.39e-05
  10  40.8118
  11  4.83802e-06
  12  2.20813e-05
  13  1.21054
  14  5.93402
  15  9.49645e-05
  16  1.82018e-06
  17  3.50654e-05
  18  3.57281
  19  21.1918
  20  3.9062
  21  10.2153
  22  5.27848e-06
  23  7.31643
  24  1.85976e-07
  25  34.8184
  26  1.02023e-05
  27  2.3881e-05
  28  2.28833e-06
  29  9.23576
  30  4.37772e-05
  31  0.232435
  32  0.252377
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  9.496e-05  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:  8.488e-01  2.524e-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.033e+00  2.324e-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: 6.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101774/likelihoodResults_605577601_605836801_4FGL_J1359.7+4012_daily_bin1413.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) = 5943.09385819
delta logL = -0.000210215116567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5943.09364976
delta logL = -1.7894026314e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0864       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84877       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=   5943.094     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      286 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    38.606        .79236E-01** at limit **
   2  alpha         2.2233        2.5412        .17073        .27435E-07
   3  Normalizat    1.0333        .82526E-02    .23199E-03    .25137E-03
   4  Prefactor     .84876        .98830E-02    .30234E-03    .21016E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.22328
  Normalizat = 1.03332
  Prefactor  = 0.848764
 **********
 **   18 **HESSE 
 **********

 FCN=   5943.094     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.122        .47491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2233        3.7543        .68292E-02   -.11092    
   3  Normalizat    1.0333        .20692        .46398E-04   -.91923    
   4  Prefactor     .84876        .24767        .12094E-04   -.97955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0582e-10
Minuit parameter uncertainties:
  1  0.000240316
  2  431.78
  3  0.207078
  4  0.247995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101774': 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) = 5943.09364794
delta logL = 3.19532773574e-08

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  2.403e-04  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.223e+00  4.318e+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:  8.488e-01  2.480e-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.033e+00  2.071e-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/101774/cmap_HighResolution_605577601_605836801_4FGL_J1359.7+4012_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-05', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2021-09-08 20:11:51.246015', job_id='101774', GAL2='0.85', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631157111.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1413' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:11:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 101774: <4FGL_J1359.7+4012_daily_bin1413> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1413> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:55:40 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:55:44 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:55:44 2021
Terminated at Wed Sep  8 20:11:52 2021
Results reported at Wed Sep  8 20:11:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1413 209.928 40.2153 605577601 605836801 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 :                                   939.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            972 sec.

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

