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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin343
RA = 209.928, Dec = 40.2153
tmin = 328233601, tmax = 328492801
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='95902', job_status='RUN', time_executed='2021-09-08 19:36:34.670517', time_epoch_executed='1631154994.67' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95902

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95902/ft1_4FGL_J1359.7+4012_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95902/ft2_4FGL_J1359.7+4012_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95902/ft1_4FGL_J1359.7+4012_daily_bin343.fits outfile=/scratch/kocevski/95902/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin343.fits ra=209.928 dec=40.2153 rad=12.0 tmin=328233601.0 tmax=328492801.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.90
user 3.65
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95902/ft1_filtered_4FGL_J1359.7+4012_daily_bin343.fits" evtable="EVENTS" scfile=/scratch/kocevski/95902/ft2_4FGL_J1359.7+4012_daily_bin343.fits sctable="SC_DATA" outfile=/scratch/kocevski/95902/ltcube_328233601_328492801_4FGL_J1359.7+4012_daily_bin343.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/95902/ft2_4FGL_J1359.7+4012_daily_bin343.fits
.....................!
real 11.80
user 11.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95902/ft1_filtered_4FGL_J1359.7+4012_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/95902/ft2_4FGL_J1359.7+4012_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/95902/ltcube_328233601_328492801_4FGL_J1359.7+4012_daily_bin343.fits outfile=/scratch/kocevski/95902/expmap_328233601_328492801_4FGL_J1359.7+4012_daily_bin343.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/95902/ltcube_328233601_328492801_4FGL_J1359.7+4012_daily_bin343.fits
.....................!
real 189.63
user 184.91
sys 4.31

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/95902/ft1_filtered_4FGL_J1359.7+4012_daily_bin343.fits scfile=/scratch/kocevski/95902/ft2_4FGL_J1359.7+4012_daily_bin343.fits outfile=/scratch/kocevski/95902/cmap_328233601_328492801_4FGL_J1359.7+4012_daily_bin343.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.52
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95902/ft1_filtered_4FGL_J1359.7+4012_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/95902/ft2_4FGL_J1359.7+4012_daily_bin343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95902/Model_4FGL_J1359.7+4012_daily_bin343.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/95902/ft1_filtered_4FGL_J1359.7+4012_daily_bin343.fits.....................!
real 49.07
user 47.72
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1526       1.0000         .10000E-03   10000.    
     4 'norm      '    7.7295       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1730       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.012       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4828       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6552       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.9528       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6625       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38040       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.8250       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.670       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.7809       1.0000         .10000E-03   10000.    
    27 'Prefactor '    52.415       1.0000         .10000E-03   10000.    
    28 'norm      '    4.1008       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3371       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .54392       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=   6178.117     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     4387 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.637        49.265        .18295E-05    .16519E-03
   2  Prefactor     .10000E-03    23.494       -.98148E-06** at limit **
   3  norm          1.1520        3.3838        .62461E-06   -.20207E-03
   4  norm          7.7294        7.5791       -.83179E-06    .45059E-03
   5  norm          4.1729        3.6706       -.17213E-06   -.47915E-04
   6  Prefactor     .10000E-03    1.3855       -.23505E-07** at limit **
   7  Prefactor     .10000E-03    4.8371       -.85249E-07** at limit **
   8  Prefactor     13.007        22.457        .47078E-05    .41489E-03
   9  Prefactor     .10000E-03    17.581        .56960E-06** at limit **
  10  Prefactor     .10000E-03    29.947        .46880E-06** at limit **
  11  norm          .10000E-03    1.0996        .69494E-08** at limit **
  12  Prefactor     2.3433        403.48       -.56619E-05   -.20731E-04
  13  norm          2.6551        1.3608        .15816E-07   -.11688E-03
  14  Prefactor     .10000E-03    3.2943        .77443E-08** at limit **
  15  norm          9.9570        13.536        .10046E-06   -.29535E-04
  16  Prefactor     .10000E-03    7.6379       -.89678E-07** at limit **
  17  Prefactor     2.6602        82.612       -.37886E-05   -.64731E-04
  18  Prefactor     .37983        3.2409        .23699E-06   -.16190E-03
  19  Prefactor     .10000E-03    22.608        .56320E-06** at limit **
  20  norm          8.8254        4.6395        .29420E-06    .47469E-03
  21  Prefactor     16.663        12.718        .78434E-07    .50146E-04
  22  Prefactor     .10000E-03    5.1533        .89573E-07** at limit **
  23  Prefactor     .10000E-03    1.9238       -.81178E-07** at limit **
  24  norm          .10000E-03    12.022        .12847E-05** at limit **
  25  Prefactor     .10000E-03    13.081       -.15674E-05** at limit **
  26  norm          5.7798        5.3274        .19717E-05   -.13508E-02
  27  Prefactor     52.412        39.062       -.89811E-06   -.61929E-04
  28  norm          4.1007        4.2011        .21437E-06    .31786E-03
  29  Prefactor     .10000E-03    8.7009       -.24562E-06** at limit **
  30  Prefactor     .10000E-03    7.0896        .23765E-06** at limit **
  31  Normalizat    1.3372        .17032       -.36263E-06    .40748E-04
  32  Prefactor     .54392        .19250       -.61364E-06   -.85299E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.6372
  Prefactor  = 0.0001
  norm       = 1.15196
  norm       = 7.72938
  norm       = 4.17293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.34326
  norm       = 2.65513
  Prefactor  = 0.0001
  norm       = 9.95703
  Prefactor  = 0.0001
  Prefactor  = 2.66018
  Prefactor  = 0.379827
  Prefactor  = 0.0001
  norm       = 8.82544
  Prefactor  = 16.663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.77981
  Prefactor  = 52.4118
  norm       = 4.10072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33724
  Prefactor  = 0.543924
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.117     FROM HESSE     STATUS=OK           657 CALLS     5044 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.637        49.532        .50695E-04   -1.4123    
   2  Prefactor     .10000E-03    23.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1520        3.3540        .24125E-03   -1.5493    
   4  norm          7.7294        7.6543        .72117E-03   -1.5152    
   5  norm          4.1729        3.6752        .13593E-03   -1.5299    
   6  Prefactor     .10000E-03    1.4228        .18054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8612        .16882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.007        23.565        .11104E-03   -1.4987    
   9  Prefactor     .10000E-03    17.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1034        .80492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3433        412.87        .25944E-03   -1.5402    
  13  norm          2.6551        1.3576        .62812E-04   -1.5382    
  14  Prefactor     .10000E-03    3.4408        .27837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.9570        13.534        .12702E-03   -1.5077    
  16  Prefactor     .10000E-03    7.6552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6602        80.908        .24979E-03   -1.5382    
  18  Prefactor     .37983        7.0135        .26099E-02   -1.5585    
  19  Prefactor     .10000E-03    23.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.8254        4.6454        .11697E-03   -1.5114    
  21  Prefactor     16.663        12.722        .98097E-04   -1.4891    
  22  Prefactor     .10000E-03    5.1565        .17420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.0649        .20842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    12.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.7798        5.7827        .83523E-03   -1.5227    
  27  Prefactor     52.412        39.060        .55398E-04   -1.4259    
  28  norm          4.1007        4.2236        .15985E-03   -1.5303    
  29  Prefactor     .10000E-03    8.7295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.1817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3372        .19218        .19307E-03   -.82462    
  32  Prefactor     .54392        .21650        .34384E-03   -1.1000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00656e-08
Minuit parameter uncertainties:
  1  49.5644
  2  0.000158117
  3  3.35452
  4  7.65523
  5  3.67543
  6  5.79423e-07
  7  5.32392e-06
  8  23.5818
  9  9.73588e-05
  10  0.000163974
  11  1.95148e-06
  12  62.6506
  13  1.35759
  14  4.97193e-06
  15  13.538
  16  1.19687e-05
  17  29.3845
  18  3.26432
  19  0.000136931
  20  4.64554
  21  12.7241
  22  4.22443e-06
  23  3.06371e-05
  24  0.00014661
  25  0.000210962
  26  5.78322
  27  39.0795
  28  4.22391
  29  2.84544e-05
  30  2.50298e-05
  31  0.192279
  32  0.216832
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  9.957e+00  1.354e+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:  5.439e-01  2.168e-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.337e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/95902/likelihoodResults_328233601_328492801_4FGL_J1359.7+4012_daily_bin343.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) = 6175.75582571
delta logL = 2.36160405352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6175.74838619
delta logL = 2.3690435692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2005       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63133       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6175.748     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      344 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2008        2.8617         .0000        .14560E-02
   2  alpha         5.0000        3.3241         .0000    ** at limit **
   3  Normalizat    1.2310        .16189         .0000       -.83932E-05
   4  Prefactor     .63122        .18977         .0000        .33023E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.20076
  alpha      = 5
  Normalizat = 1.23098
  Prefactor  = 0.631223
 **********
 **   18 **HESSE 
 **********

 FCN=   6175.748     FROM HESSE     STATUS=OK            33 CALLS      377 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2008        1.7236        .69757E-04   -1.5350    
   2  alpha         5.0000        3.2799        .53888E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2310        .18784        .19938E-03   -.85651    
   4  Prefactor     .63122        .21923        .32100E-03   -1.0629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52152e-08
Minuit parameter uncertainties:
  1  1.72361
  2  0.000563723
  3  0.187939
  4  0.219532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95902': 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) = 6175.74838588
delta logL = 2.3690438798

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  3.201e+00  1.724e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  5.000e+00  5.637e-04  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:  6.312e-01  2.195e-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.231e+00  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.70
Ra Dec: 209.928 40.215
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.09e-08 +/- 4.87e-08
Energy Flux (Free Index): 1.26e-05 +/- 6.78e-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/95902/cmap_HighResolution_328233601_328492801_4FGL_J1359.7+4012_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-05', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='2.37e+00', photon_flux2='9.09e-08', job_status='DONE', time_completed='2021-09-08 19:52:50.324719', photon_index_error2='0.00', photon_index2='5.00', ts='0.68', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='7.51e-08', energy_flux_error2='6.78e-06', EG='1.34', time_epoch_completed='1631155970.32', return_code='0', job_id='95902', GAL2='0.63', EG2='1.23', return_code2='0', photon_flux_error2='4.87e-08', ts2='5.70', photon_index='2.33' WHERE bin_id='343' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:52:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 95902: <4FGL_J1359.7+4012_daily_bin343> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin343> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 19:36:14 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:36:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 19:36:15 2021
Terminated at Wed Sep  8 19:52:51 2021
Results reported at Wed Sep  8 19:52:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin343 209.928 40.2153 328233601 328492801 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 :                                   949.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

