/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 16 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 = 7645
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1597
RA = 209.928, Dec = 40.2153
tmin = 653270401, tmax = 653529601
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='547694', job_status='RUN', time_executed='2021-09-17 01:06:00.989502', time_epoch_executed='1631865960.99' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547694

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547694/ft1_4FGL_J1359.7+4012_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547694/ft2_4FGL_J1359.7+4012_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547694/ft1_4FGL_J1359.7+4012_daily_bin1597.fits outfile=/scratch/kocevski/547694/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1597.fits ra=209.928 dec=40.2153 rad=12.0 tmin=653270401.0 tmax=653529601.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.34
user 3.12
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547694/ft1_filtered_4FGL_J1359.7+4012_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/547694/ft2_4FGL_J1359.7+4012_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/547694/ltcube_653270401_653529601_4FGL_J1359.7+4012_daily_bin1597.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/547694/ft2_4FGL_J1359.7+4012_daily_bin1597.fits
.....................!
real 12.51
user 12.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547694/ft1_filtered_4FGL_J1359.7+4012_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/547694/ft2_4FGL_J1359.7+4012_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/547694/ltcube_653270401_653529601_4FGL_J1359.7+4012_daily_bin1597.fits outfile=/scratch/kocevski/547694/expmap_653270401_653529601_4FGL_J1359.7+4012_daily_bin1597.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/547694/ltcube_653270401_653529601_4FGL_J1359.7+4012_daily_bin1597.fits
.....................!
real 189.62
user 184.92
sys 4.36

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/547694/ft1_filtered_4FGL_J1359.7+4012_daily_bin1597.fits scfile=/scratch/kocevski/547694/ft2_4FGL_J1359.7+4012_daily_bin1597.fits outfile=/scratch/kocevski/547694/cmap_653270401_653529601_4FGL_J1359.7+4012_daily_bin1597.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.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547694/ft1_filtered_4FGL_J1359.7+4012_daily_bin1597.fits scfile=/scratch/kocevski/547694/ft2_4FGL_J1359.7+4012_daily_bin1597.fits outfile=/scratch/kocevski/547694/cmap_HighResolution_653270401_653529601_4FGL_J1359.7+4012_daily_bin1597.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/547694/ft1_filtered_4FGL_J1359.7+4012_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/547694/ft2_4FGL_J1359.7+4012_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/547694/Model_4FGL_J1359.7+4012_daily_bin1597.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/547694/ft1_filtered_4FGL_J1359.7+4012_daily_bin1597.fits.....................!
real 43.88
user 42.59
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10748E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11420E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.929       1.0000         .10000E-03   10000.    
     4 'norm      '    19.351       1.0000         .10000E-03   10000.    
     5 'norm      '    .16388E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.890       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.876       1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.943       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17117E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.5959       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5141       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1442       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.094       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3751       1.0000         .10000E-03   10000.    
    20 'norm      '    3.5412       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.631       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11106E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.7543       1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.7282       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    18.450       1.0000         .10000E-03   10000.    
    29 'Prefactor '    14.721       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .85520       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1935       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=   5353.010     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     4393 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.516        .27482E-05** at limit **
   2  Prefactor     .10000E-03    71.253       -.34764E-05** at limit **
   3  norm          16.928        9.9251        .13619E-06    .68170E-04
   4  norm          19.341        22.386        .95406E-08   -.46743E-05
   5  norm          .10000E-03    6.6429       -.14618E-05** at limit **
   6  Prefactor     .10000E-03    4.3019       -.10713E-06** at limit **
   7  Prefactor     11.889        23.789        .35737E-07    .58441E-05
   8  Prefactor     21.801        39.828        .51259E-05   -.15232E-04
   9  Prefactor     55.919        77.545        .21575E-05   -.88499E-05
  10  Prefactor     .10000E-03    25.439       -.21879E-05** at limit **
  11  norm          9.5967        5.7799       -.13432E-06    .10161E-04
  12  Prefactor     .10000E-03    124.36        .28305E-06** at limit **
  13  norm          3.5144        1.6838       -.47744E-08   -.29254E-04
  14  Prefactor     .10000E-03    4.2982        .58168E-07** at limit **
  15  norm          2.1427        19.882        .60103E-05   -.19147E-04
  16  Prefactor     .10000E-03    11.686        .43032E-07** at limit **
  17  Prefactor     26.100        34.749       -.78928E-07   -.14584E-05
  18  Prefactor     .10000E-03    2.9890        .43599E-07** at limit **
  19  Prefactor     1.3593        54.545        .16501E-05    .25676E-05
  20  norm          3.5400        5.4460        .22301E-06   -.24804E-04
  21  Prefactor     24.612        18.075       -.20066E-07   -.22211E-04
  22  Prefactor     .10000E-03    27.537        .15666E-06** at limit **
  23  Prefactor     8.7541        5.3519        .22355E-06   -.51171E-04
  24  norm          .10000E-03    5.3764       -.11617E-07** at limit **
  25  Prefactor     .10000E-03    9.8816        .28548E-07** at limit **
  26  norm          5.7274        7.1519        .13625E-06   -.12066E-04
  27  Prefactor     .10000E-03    21.183        .35558E-06** at limit **
  28  norm          18.450        9.6185        .82593E-08   -.20876E-05
  29  Prefactor     14.718        20.857        .16792E-06   -.37183E-05
  30  Prefactor     .10000E-03    3.6449        .17786E-07** at limit **
  31  Normalizat    .85539        .20371       -.27460E-06    .16429E-04
  32  Prefactor     1.1934        .22708       -.97229E-06    .22938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9278
  norm       = 19.3409
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8885
  Prefactor  = 21.8013
  Prefactor  = 55.9194
  Prefactor  = 0.0001
  norm       = 9.5967
  Prefactor  = 0.0001
  norm       = 3.5144
  Prefactor  = 0.0001
  norm       = 2.14269
  Prefactor  = 0.0001
  Prefactor  = 26.1001
  Prefactor  = 0.0001
  Prefactor  = 1.35933
  norm       = 3.53999
  Prefactor  = 24.6119
  Prefactor  = 0.0001
  Prefactor  = 8.75405
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.72737
  Prefactor  = 0.0001
  norm       = 18.4499
  Prefactor  = 14.7178
  Prefactor  = 0.0001
  Normalizat = 0.855385
  Prefactor  = 1.19338
 **********
 **   18 **HESSE 
 **********

 FCN=   5353.010     FROM HESSE     STATUS=OK           659 CALLS     5052 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    71.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.928        9.9217        .97344E-04   -1.4885    
   4  norm          19.341        22.406        .91050E-04   -1.4828    
   5  norm          .10000E-03    6.8984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3360        .14776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.889        23.749        .11618E-03   -1.5018    
   8  Prefactor     21.801        40.037        .85638E-04   -1.4774    
   9  Prefactor     55.919        77.435        .53632E-04   -1.4211    
  10  Prefactor     .10000E-03    25.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.5967        5.7815        .12937E-03   -1.5088    
  12  Prefactor     .10000E-03    124.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5144        1.6832        .62938E-04   -1.5333    
  14  Prefactor     .10000E-03    4.4403        .29602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1427        19.978        .14072E-02   -1.5415    
  16  Prefactor     .10000E-03    11.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.100        34.739        .78422E-04   -1.4686    
  18  Prefactor     .10000E-03    3.0218        .12334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3593        55.045        .37151E-03   -1.5475    
  20  norm          3.5400        5.4082        .19415E-03   -1.5332    
  21  Prefactor     24.612        18.036        .40356E-03   -1.4715    
  22  Prefactor     .10000E-03    27.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.7541        5.3495        .12284E-03   -1.5116    
  24  norm          .10000E-03    5.3772        .16566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.9017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.7274        7.1381        .16782E-03   -1.5229    
  27  Prefactor     .10000E-03    21.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          18.450        9.6174        .93245E-04   -1.4849    
  29  Prefactor     14.718        20.864        .10439E-03   -1.4941    
  30  Prefactor     .10000E-03    3.6547        .13639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .85539        .24495        .25826E-03   -.98046    
  32  Prefactor     1.1934        .27332        .26974E-03   -.86535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04327e-10
Minuit parameter uncertainties:
  1  0.000150102
  2  0.000311303
  3  9.92267
  4  22.4158
  5  0.000115471
  6  9.16998e-06
  7  23.7674
  8  40.0861
  9  77.5747
  10  0.000195446
  11  5.78186
  12  5.90283e-06
  13  1.68324
  14  5.93704e-06
  15  13.0909
  16  6.35533e-07
  17  34.7661
  18  2.05116e-06
  19  17.3167
  20  5.40891
  21  18.0404
  22  1.63554e-05
  23  5.34975
  24  9.31668e-07
  25  4.56976e-06
  26  7.13913
  27  5.90933e-06
  28  9.61823
  29  20.874
  30  1.03349e-06
  31  0.245265
  32  0.273648
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.143e+00  1.309e+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.193e+00  2.736e-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:  8.554e-01  2.453e-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: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/547694/likelihoodResults_653270401_653529601_4FGL_J1359.7+4012_daily_bin1597.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) = 5353.0044084
delta logL = 0.00542634870635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5353.00370537
delta logL = 0.00612937055939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6403       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0551       1.0000          .0000       5.0000    
     3 'Normalizat'    .85620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1919       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=   5353.004     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6397        18.023        .25092E-03   -.28091E-05
   2  alpha         2.0551        1.9832        .61446E-01   -.15336E-05
   3  Normalizat    .85628        .22071        .25813E-03   -.29949E-05
   4  Prefactor     1.1918        .26943        .26990E-03   -.64026E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.63971
  alpha      = 2.05512
  Normalizat = 0.856283
  Prefactor  = 1.19179
 **********
 **   18 **HESSE 
 **********

 FCN=   5353.004     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6397        17.341        .10037E-04   -1.5383    
   2  alpha         2.0551        1.9588        .24578E-02   -.17890    
   3  Normalizat    .85628        .22093        .10325E-04   -.98014    
   4  Prefactor     1.1918        .26958        .10796E-04   -.86584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63166e-13
Minuit parameter uncertainties:
  1  13.537
  2  2.26577
  3  0.221167
  4  0.269888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547694': 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) = 5353.00370531
delta logL = 0.00612943427495

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.640e+00  1.354e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.055e+00  2.266e+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.192e+00  2.699e-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:  8.563e-01  2.212e-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/547694/cmap_HighResolution_653270401_653529601_4FGL_J1359.7+4012_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-17 01:20:07.335394', job_id='547694', GAL2='1.19', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631866807.34', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='6.13e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1597' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 01:20:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 547694: <4FGL_J1359.7+4012_daily_bin1597> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1597> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Sep 17 01:05:27 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 01:05:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 01:05:28 2021
Terminated at Fri Sep 17 01:20:08 2021
Results reported at Fri Sep 17 01:20:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1597 209.928 40.2153 653270401 653529601 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 :                                   848.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

