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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin581
RA = 209.928, Dec = 40.2153
tmin = 389923201, tmax = 390182401
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='97221', job_status='RUN', time_executed='2021-09-08 19:40:59.208765', time_epoch_executed='1631155259.21' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97221/ft1_4FGL_J1359.7+4012_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97221/ft2_4FGL_J1359.7+4012_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97221/ft1_4FGL_J1359.7+4012_daily_bin581.fits outfile=/scratch/kocevski/97221/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin581.fits ra=209.928 dec=40.2153 rad=12.0 tmin=389923201.0 tmax=390182401.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.54
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97221/ft1_filtered_4FGL_J1359.7+4012_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/97221/ft2_4FGL_J1359.7+4012_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/97221/ltcube_389923201_390182401_4FGL_J1359.7+4012_daily_bin581.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/97221/ft2_4FGL_J1359.7+4012_daily_bin581.fits
.....................!
real 11.93
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97221/ft1_filtered_4FGL_J1359.7+4012_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/97221/ft2_4FGL_J1359.7+4012_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/97221/ltcube_389923201_390182401_4FGL_J1359.7+4012_daily_bin581.fits outfile=/scratch/kocevski/97221/expmap_389923201_390182401_4FGL_J1359.7+4012_daily_bin581.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/97221/ltcube_389923201_390182401_4FGL_J1359.7+4012_daily_bin581.fits
.....................!
real 192.27
user 186.13
sys 5.72

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/97221/ft1_filtered_4FGL_J1359.7+4012_daily_bin581.fits scfile=/scratch/kocevski/97221/ft2_4FGL_J1359.7+4012_daily_bin581.fits outfile=/scratch/kocevski/97221/cmap_389923201_390182401_4FGL_J1359.7+4012_daily_bin581.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/97221/ft1_filtered_4FGL_J1359.7+4012_daily_bin581.fits scfile=/scratch/kocevski/97221/ft2_4FGL_J1359.7+4012_daily_bin581.fits outfile=/scratch/kocevski/97221/cmap_HighResolution_389923201_390182401_4FGL_J1359.7+4012_daily_bin581.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/97221/ft1_filtered_4FGL_J1359.7+4012_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/97221/ft2_4FGL_J1359.7+4012_daily_bin581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/97221/Model_4FGL_J1359.7+4012_daily_bin581.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/97221/ft1_filtered_4FGL_J1359.7+4012_daily_bin581.fits.....................!
real 45.29
user 43.90
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3088       1.0000         .10000E-03   10000.    
     4 'norm      '    40.187       1.0000         .10000E-03   10000.    
     5 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0409       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.785       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0403       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11380E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3721       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.856       1.0000         .10000E-03   10000.    
    13 'norm      '    8.6124       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13881E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8600       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.829       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4721       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .57939E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12646E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    21.181       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .92582E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.768       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .75770       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1694       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=   5460.331     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     4395 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.940        .12801E-04** at limit **
   2  Prefactor     .10000E-03    10.369       -.13117E-05** at limit **
   3  norm          3.3086        3.4372        .53845E-07    .17821E-03
   4  norm          40.189        22.298       -.61555E-06   -.31163E-04
   5  norm          .10000E-03    1.4927        .72258E-07** at limit **
   6  Prefactor     5.0407        4.2321        .57204E-07   -.17289E-03
   7  Prefactor     .10000E-03    4.7448        .15282E-07** at limit **
   8  Prefactor     21.767        37.781       -.90320E-05   -.70776E-05
   9  Prefactor     6.0379        143.08       -.76103E-05   -.25657E-05
  10  Prefactor     .10000E-03    22.191        .11059E-05** at limit **
  11  norm          1.3745        3.6791       -.39896E-06   -.70344E-03
  12  Prefactor     47.851        73.376       -.65630E-05    .15296E-04
  13  norm          8.6126        2.2219        .42433E-07    .72850E-04
  14  Prefactor     .10000E-03    2.5374       -.28797E-06** at limit **
  15  norm          1.8596        15.412       -.15824E-05   -.21509E-03
  16  Prefactor     .10000E-03    12.953        .34417E-05** at limit **
  17  Prefactor     .10000E-03    9.5818        .56275E-06** at limit **
  18  Prefactor     1.8332        2.5257       -.87578E-07   -.71708E-04
  19  Prefactor     35.825        21.614        .65979E-06    .21190E-04
  20  norm          2.4728        3.1251       -.91142E-07    .29847E-05
  21  Prefactor     .10060E-03    9.8943       -.10177E-05** at limit **
  22  Prefactor     .10000E-03    15.127       -.23801E-05** at limit **
  23  Prefactor     .10001E-03    1.9581       -.44837E-06** at limit **
  24  norm          21.186        14.030       -.19021E-06    .14338E-03
  25  Prefactor     .10025E-03    24.976        .29372E-06** at limit **
  26  norm          .10000E-03    1.6104        .13119E-07** at limit **
  27  Prefactor     .10000E-03    41.878       -.12846E-04** at limit **
  28  norm          .10000E-03    5.8700       -.25345E-08** at limit **
  29  Prefactor     .10000E-03    17.425        .20392E-05** at limit **
  30  Prefactor     12.768        10.372       -.18866E-06   -.76672E-05
  31  Normalizat    .75773        .18231        .18786E-05    .19990E-03
  32  Prefactor     1.1694        .20590        .20870E-06    .22674E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.30864
  norm       = 40.1892
  norm       = 0.0001
  Prefactor  = 5.04075
  Prefactor  = 0.0001
  Prefactor  = 21.7671
  Prefactor  = 6.03786
  Prefactor  = 0.0001
  norm       = 1.37447
  Prefactor  = 47.8505
  norm       = 8.61264
  Prefactor  = 0.0001
  norm       = 1.85961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.83325
  Prefactor  = 35.8251
  norm       = 2.47275
  Prefactor  = 0.000100599
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 21.1864
  Prefactor  = 0.000100246
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7682
  Normalizat = 0.757732
  Prefactor  = 1.16939
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.331     FROM HESSE     STATUS=OK           669 CALLS     5064 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3086        3.4425        .13564E-03   -1.5344    
   4  norm          40.189        22.301        .63230E-04   -1.4439    
   5  norm          .10000E-03    1.4947        .88160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0407        4.2046        .12363E-03   -1.5259    
   7  Prefactor     .10000E-03    4.7474        .15716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.767        37.387        .85817E-04   -1.4775    
   9  Prefactor     6.0379        141.45        .16337E-03   -1.5216    
  10  Prefactor     .10000E-03    22.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3745        3.6816        .22536E-03   -1.5473    
  12  Prefactor     47.851        73.285        .57964E-04   -1.4323    
  13  norm          8.6126        2.2194        .53191E-04   -1.5121    
  14  Prefactor     .10000E-03    13.876        .22454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8596        15.743        .30556E-03   -1.5435    
  16  Prefactor     .10000E-03    12.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.5828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8332        2.5091        .13400E-03   -1.5437    
  19  Prefactor     35.825        21.620        .66952E-04   -1.4510    
  20  norm          2.4728        3.1059        .14113E-03   -1.5393    
  21  Prefactor     .10060E-03    15.054        .69821E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    14.632        .19739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          21.186        14.045        .87029E-04   -1.4787    
  25  Prefactor     .10025E-03    177.58        .69773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.6138        .91572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    41.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    5.9476        .17481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    17.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     12.768        10.370        .11210E-03   -1.4993    
  31  Normalizat    .75773        .21158        .25558E-03   -1.0166    
  32  Prefactor     1.1694        .24537        .25586E-03   -.87279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95924e-09
Minuit parameter uncertainties:
  1  1.76216e-05
  2  4.33014e-06
  3  3.44267
  4  22.3057
  5  8.57238e-06
  6  4.20482
  7  9.63359e-07
  8  37.4276
  9  58.6054
  10  0.000154109
  11  3.6822
  12  73.4239
  13  2.21942
  14  3.66493e-05
  15  10.8248
  16  4.19973e-06
  17  4.12623e-06
  18  2.50928
  19  21.6249
  20  3.10608
  21  0.00600768
  22  9.16591e-06
  23  0.000637847
  24  14.0471
  25  0.0132553
  26  9.77756e-07
  27  6.51599e-07
  28  4.85973e-06
  29  2.71494e-05
  30  10.3712
  31  0.211809
  32  0.245606
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.860e+00  1.082e+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:  1.169e+00  2.456e-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:  7.577e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/97221/likelihoodResults_389923201_390182401_4FGL_J1359.7+4012_daily_bin581.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) = 5460.33086983
delta logL = 2.70327291219e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5460.33086957
delta logL = 5.34591890755e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8596       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3268       1.0000          .0000       5.0000    
     3 'Normalizat'    .75773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1694       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=   5460.331     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      203 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8530        28.891        .76398E-02    .42383E-03
   2  alpha         2.3058        3.4410        .41277       -.28534E-04
   3  Normalizat    .75783        .16821        .43056E-01    .25332E-03
   4  Prefactor     1.1693        .20599        .57861E-01    .23667E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.85297
  alpha      = 2.30576
  Normalizat = 0.757826
  Prefactor  = 1.16931
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.331     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8530        15.664        .30559E-03   -1.5436    
   2  alpha         2.3058        3.6209        .10975       -.77776E-01
   3  Normalizat    .75783        .19936        .25556E-03   -1.0165    
   4  Prefactor     1.1693        .24334        .25586E-03   -.87281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78816e-10
Minuit parameter uncertainties:
  1  10.7785
  2  4.286
  3  0.199556
  4  0.243573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97221': 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) = 5460.33085797
delta logL = 1.21308967209e-05

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.853e+00  1.078e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.306e+00  4.286e+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:  1.169e+00  2.436e-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:  7.578e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/97221/cmap_HighResolution_389923201_390182401_4FGL_J1359.7+4012_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-05', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-08 19:55:23.838880', job_id='97221', GAL2='1.17', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631156123.84', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.21e-05', ts2='0.03', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='581' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:55:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 97221: <4FGL_J1359.7+4012_daily_bin581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin581 209.928 40.2153 389923201 390182401 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 :                                   858.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

