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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin73
RA = 209.928, Dec = 40.2153
tmin = 258249601, tmax = 258508801
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='95454', job_status='RUN', time_executed='2021-09-08 19:39:42.942063', time_epoch_executed='1631155182.94' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95454

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95454/ft1_4FGL_J1359.7+4012_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95454/ft2_4FGL_J1359.7+4012_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95454/ft1_4FGL_J1359.7+4012_daily_bin73.fits outfile=/scratch/kocevski/95454/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin73.fits ra=209.928 dec=40.2153 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.17
user 0.98
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95454/ft2_4FGL_J1359.7+4012_daily_bin73.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/95454/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/95454/ft1_filtered_4FGL_J1359.7+4012_daily_bin73.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.47
user 0.31
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95454/ft1_filtered_4FGL_J1359.7+4012_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/95454/ft2_4FGL_J1359.7+4012_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/95454/ltcube_258249601_258508801_4FGL_J1359.7+4012_daily_bin73.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/95454/ft2_4FGL_J1359.7+4012_daily_bin73.fits
.....................!
real 9.27
user 8.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95454/ft1_filtered_4FGL_J1359.7+4012_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/95454/ft2_4FGL_J1359.7+4012_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/95454/ltcube_258249601_258508801_4FGL_J1359.7+4012_daily_bin73.fits outfile=/scratch/kocevski/95454/expmap_258249601_258508801_4FGL_J1359.7+4012_daily_bin73.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/95454/ltcube_258249601_258508801_4FGL_J1359.7+4012_daily_bin73.fits
.....................!
real 191.11
user 186.23
sys 4.55

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/95454/ft1_filtered_4FGL_J1359.7+4012_daily_bin73.fits scfile=/scratch/kocevski/95454/ft2_4FGL_J1359.7+4012_daily_bin73.fits outfile=/scratch/kocevski/95454/cmap_258249601_258508801_4FGL_J1359.7+4012_daily_bin73.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.51
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95454/ft1_filtered_4FGL_J1359.7+4012_daily_bin73.fits scfile=/scratch/kocevski/95454/ft2_4FGL_J1359.7+4012_daily_bin73.fits outfile=/scratch/kocevski/95454/cmap_HighResolution_258249601_258508801_4FGL_J1359.7+4012_daily_bin73.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.52
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95454/ft1_filtered_4FGL_J1359.7+4012_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/95454/ft2_4FGL_J1359.7+4012_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95454/Model_4FGL_J1359.7+4012_daily_bin73.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/95454/ft1_filtered_4FGL_J1359.7+4012_daily_bin73.fits.....................!
real 33.59
user 32.37
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29302E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.3459       1.0000         .10000E-03   10000.    
     4 'norm      '    11.982       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10944E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.831       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30993E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34826E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.846       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7903       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70878E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10851E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.478       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5702       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2044       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.3724       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    25.886       1.0000         .10000E-03   10000.    
    30 'Prefactor '    17.619       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .74389       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4051       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=   3413.453     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4321 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    261.16       -.45609E-05** at limit **
   2  Prefactor     .10000E-03    20.628       -.78450E-06** at limit **
   3  norm          5.3407        8.2447        .92284E-06   -.15565E-03
   4  norm          11.976        19.444        .38975E-06    .21546E-04
   5  norm          .10000E-03    2.2365       -.64398E-08** at limit **
   6  Prefactor     .10000E-03    2.8975        .26825E-06** at limit **
   7  Prefactor     12.817        13.822        .51846E-06   -.70152E-04
   8  Prefactor     .10000E-03    29.583        .12289E-05** at limit **
   9  Prefactor     .10005E-03    301.86       -.66572E-05** at limit **
  10  Prefactor     .10000E-03    170.91       -.75968E-06** at limit **
  11  norm          .10000E-03    4.5810       -.10034E-06** at limit **
  12  Prefactor     .10000E-03    59.335        .25686E-06** at limit **
  13  norm          11.842        3.6239        .20575E-06   -.89756E-04
  14  Prefactor     4.7976        6.9371        .64831E-05   -.38801E-03
  15  norm          .10000E-03    5.8843        .36530E-07** at limit **
  16  Prefactor     .10022E-03    22.063       -.12445E-05** at limit **
  17  Prefactor     .10001E-03    93.222        .36993E-05** at limit **
  18  Prefactor     .10000E-03    8.2775        .15919E-05** at limit **
  19  Prefactor     23.547        39.547        .61533E-05    .52859E-03
  20  norm          .10000E-03    2.1380       -.32755E-07** at limit **
  21  Prefactor     7.5706        16.160       -.51547E-06    .57927E-04
  22  Prefactor     .10001E-03    37.631       -.14781E-05** at limit **
  23  Prefactor     1.2047        3.3223        .45401E-06    .11588E-04
  24  norm          .10000E-03    8.7561        .11338E-06** at limit **
  25  Prefactor     .10000E-03    21.199        .81276E-06** at limit **
  26  norm          2.3764        7.6914        .15328E-05    .66743E-04
  27  Prefactor     .10000E-03    59.578        .57421E-06** at limit **
  28  norm          .10000E-03    4.7346       -.11188E-06** at limit **
  29  Prefactor     25.899        26.743        .62133E-06    .60928E-04
  30  Prefactor     17.624        15.171        .24752E-06    .15356E-04
  31  Normalizat    .74291        .24720       -.82281E-05    .10218E-03
  32  Prefactor     1.4056        .27931        .28812E-05   -.16682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Prefactor  = 0.000100001
  norm       = 5.34074
  norm       = 11.9764
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8174
  Prefactor  = 0.000100004
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.8417
  Prefactor  = 4.79756
  norm       = 0.0001
  Prefactor  = 0.000100224
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 23.5468
  norm       = 0.0001
  Prefactor  = 7.57061
  Prefactor  = 0.000100007
  Prefactor  = 1.20469
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.37638
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 25.899
  Prefactor  = 17.6237
  Normalizat = 0.742913
  Prefactor  = 1.40561
 **********
 **   18 **HESSE 
 **********

 FCN=   3413.453     FROM HESSE     STATUS=OK           649 CALLS     4970 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    264.95        .21400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.3407        8.1398        .17382E-03   -1.5246    
   4  norm          11.976        19.450        .11573E-03   -1.5016    
   5  norm          .10000E-03    2.2374        .85333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6633        .18842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.817        13.685        .11182E-03   -1.4992    
   8  Prefactor     .10000E-03    29.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10005E-03    306.45        .21376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    172.46        .21326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.6031        .12211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    59.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.842        3.6291        .57575E-04   -1.5020    
  14  Prefactor     4.7976        6.9804        .86621E-03   -1.5270    
  15  norm          .10000E-03    5.8867        .13842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10022E-03    114.73        .51888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    93.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3089        .16385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.547        40.036        .82668E-04   -1.4737    
  20  norm          .10000E-03    2.1483        .83401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.5706        15.764        .14576E-03   -1.5158    
  22  Prefactor     .10001E-03    37.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2047        3.2608        .17016E-03   -1.5488    
  24  norm          .10000E-03    8.7587        .16885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.3764        7.6532        .26600E-03   -1.5400    
  27  Prefactor     .10000E-03    59.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.7360        .12417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     25.899        26.718        .78735E-04   -1.4690    
  30  Prefactor     17.624        15.160        .95418E-04   -1.4868    
  31  Normalizat    .74291        .28402        .27365E-03   -1.0222    
  32  Prefactor     1.4056        .32770        .25660E-03   -.80219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89058e-09
Minuit parameter uncertainties:
  1  0.00433474
  2  0.000215859
  3  8.14151
  4  19.4598
  5  2.87909e-06
  6  4.62473e-05
  7  13.6879
  8  0.000727783
  9  0.00770182
  10  0.00017143
  11  8.35057e-06
  12  0.000399205
  13  3.62921
  14  6.98156
  15  7.73792e-06
  16  0.01015
  17  0.00199436
  18  5.74646e-05
  19  40.0818
  20  6.28757e-06
  21  15.773
  22  0.00101709
  23  3.26126
  24  4.18617e-05
  25  0.000211535
  26  7.65638
  27  0.000408622
  28  2.79792e-05
  29  26.7307
  30  15.1633
  31  0.284587
  32  0.328188
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  7.738e-06  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.406e+00  3.282e-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.429e-01  2.846e-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: 5.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95454/likelihoodResults_258249601_258508801_4FGL_J1359.7+4012_daily_bin73.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) = 3413.45338261
delta logL = -0.000778480029112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3413.45260412
delta logL = 1.57388058142e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3233       1.0000          .0000       5.0000    
     3 'Normalizat'    .74289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4056       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=   3413.453     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      237 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.0702        .13852E-02** at limit **
   2  alpha         2.0649        3.9528        .16513E-01    .10534E-07
   3  Normalizat    .74291        .25720        .27366E-03    .12380E-04
   4  Prefactor     1.4056        .32219        .25660E-03    .13402E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.06487
  Normalizat = 0.742907
  Prefactor  = 1.40561
 **********
 **   18 **HESSE 
 **********

 FCN=   3413.453     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0249        .27704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0649        3.6707        .33026E-02   -.17494    
   3  Normalizat    .74291        .25743        .10946E-04   -1.0222    
   4  Prefactor     1.4056        .32248        .10264E-04   -.80219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81566e-12
Minuit parameter uncertainties:
  1  1.35696e-05
  2  411.612
  3  0.257848
  4  0.322943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95454': 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) = 3413.45260393
delta logL = 1.94960648514e-07

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  1.357e-05  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.065e+00  4.116e+02  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.406e+00  3.229e-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.429e-01  2.578e-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/95454/cmap_HighResolution_258249601_258508801_4FGL_J1359.7+4012_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-05', job_status='DONE', photon_flux_upper_limit='5.93e-08', time_completed='2021-09-08 19:50:27.584122', job_id='95454', GAL2='1.41', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1631155827.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='1.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='73' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:50:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 95454: <4FGL_J1359.7+4012_daily_bin73> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin73> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 19:35:33 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:35:35 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:35:35 2021
Terminated at Wed Sep  8 19:50:28 2021
Results reported at Wed Sep  8 19:50:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin73 209.928 40.2153 258249601 258508801 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 :                                   643.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

