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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin296
RA = 209.928, Dec = 40.2153
tmin = 316051201, tmax = 316310401
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='95826', job_status='RUN', time_executed='2021-09-08 19:36:20.310082', time_epoch_executed='1631154980.31' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95826/ft1_4FGL_J1359.7+4012_daily_bin296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95826/ft2_4FGL_J1359.7+4012_daily_bin296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95826/ft1_4FGL_J1359.7+4012_daily_bin296.fits outfile=/scratch/kocevski/95826/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin296.fits ra=209.928 dec=40.2153 rad=12.0 tmin=316051201.0 tmax=316310401.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.47
user 3.25
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95826/ft1_filtered_4FGL_J1359.7+4012_daily_bin296.fits evtable="EVENTS" scfile=/scratch/kocevski/95826/ft2_4FGL_J1359.7+4012_daily_bin296.fits sctable="SC_DATA" expcube=/scratch/kocevski/95826/ltcube_316051201_316310401_4FGL_J1359.7+4012_daily_bin296.fits outfile=/scratch/kocevski/95826/expmap_316051201_316310401_4FGL_J1359.7+4012_daily_bin296.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/95826/ltcube_316051201_316310401_4FGL_J1359.7+4012_daily_bin296.fits
.....................!
real 190.99
user 185.53
sys 5.15

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/95826/ft1_filtered_4FGL_J1359.7+4012_daily_bin296.fits scfile=/scratch/kocevski/95826/ft2_4FGL_J1359.7+4012_daily_bin296.fits outfile=/scratch/kocevski/95826/cmap_316051201_316310401_4FGL_J1359.7+4012_daily_bin296.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95826/ft1_filtered_4FGL_J1359.7+4012_daily_bin296.fits scfile=/scratch/kocevski/95826/ft2_4FGL_J1359.7+4012_daily_bin296.fits outfile=/scratch/kocevski/95826/cmap_HighResolution_316051201_316310401_4FGL_J1359.7+4012_daily_bin296.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95826/ft1_filtered_4FGL_J1359.7+4012_daily_bin296.fits evtable="EVENTS" scfile=/scratch/kocevski/95826/ft2_4FGL_J1359.7+4012_daily_bin296.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95826/Model_4FGL_J1359.7+4012_daily_bin296.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/95826/ft1_filtered_4FGL_J1359.7+4012_daily_bin296.fits.....................!
real 44.40
user 43.04
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.851       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26371E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    111.39       1.0000         .10000E-03   10000.    
    11 'norm      '    .18589       1.0000         .10000E-03   10000.    
    12 'Prefactor '    143.42       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2299       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.937       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    85.076       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.2692       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0279       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.759       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5668       1.0000         .10000E-03   10000.    
    24 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12087E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    14.031       1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.031       1.0000         .10000E-03   10000.    
    28 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .65580       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1424       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=   5369.295     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     4369 TOTAL
                     EDM=   .90E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.632       -.14492E-06** at limit **
   2  Prefactor     .10000E-03    25.366        .22242E-06** at limit **
   3  norm          .10000E-03    6.1492       -.50929E-08** at limit **
   4  norm          12.851        11.091        .47899E-07   -.27616E-05
   5  norm          1.8523        3.7347        .22408E-06    .10543E-06
   6  Prefactor     .10000E-03    2.6733        .38843E-08** at limit **
   7  Prefactor     8.1464        12.785        .24563E-06   -.41711E-04
   8  Prefactor     .10000E-03    33.184       -.10920E-05** at limit **
   9  Prefactor     .10000E-03    249.72        .95173E-05** at limit **
  10  Prefactor     111.38        44.322        .96232E-06    .83653E-05
  11  norm          .19799        2.6281        .39079E-07   -.66761E-04
  12  Prefactor     143.38        91.713        .24063E-05   -.15358E-04
  13  norm          1.2298        1.2083       -.22328E-07   -.84824E-04
  14  Prefactor     13.935        6.5670        .70540E-07   -.30480E-04
  15  norm          .10000E-03    5.8951        .48637E-07** at limit **
  16  Prefactor     .10000E-03    6.6013        .13465E-07** at limit **
  17  Prefactor     85.053        50.454        .18092E-05   -.29340E-05
  18  Prefactor     .10000E-03    1.8098       -.11934E-06** at limit **
  19  Prefactor     .10000E-03    6.4171       -.87952E-07** at limit **
  20  norm          5.2699        3.9844       -.34249E-07   -.76108E-05
  21  Prefactor     6.0330        21.046        .49289E-06    .15119E-05
  22  Prefactor     17.765        28.833       -.17209E-06   -.96388E-05
  23  Prefactor     2.5674        3.7773        .11692E-05   -.80744E-05
  24  norm          .10000E-03    11.932       -.18441E-06** at limit **
  25  Prefactor     .10000E-03    23.975        .56376E-06** at limit **
  26  norm          14.030        7.7973        .86872E-07   -.11486E-04
  27  Prefactor     29.033        48.620       -.67172E-07   -.27981E-05
  28  norm          .10000E-03    4.1556        .78323E-08** at limit **
  29  Prefactor     .10000E-03    10.681        .26830E-06** at limit **
  30  Prefactor     .10000E-03    3.4050        .20409E-07** at limit **
  31  Normalizat    .65576        .18283       -.26505E-06   -.39388E-04
  32  Prefactor     1.1424        .20964       -.11053E-05   -.46798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.851
  norm       = 1.85234
  Prefactor  = 0.0001
  Prefactor  = 8.14638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.378
  norm       = 0.197986
  Prefactor  = 143.382
  norm       = 1.22982
  Prefactor  = 13.9352
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.0528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.26991
  Prefactor  = 6.03302
  Prefactor  = 17.7648
  Prefactor  = 2.56738
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0301
  Prefactor  = 29.0332
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.65576
  Prefactor  = 1.14236
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.295     FROM HESSE     STATUS=OK           659 CALLS     5028 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.2608        .17719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.851        11.092        .11174E-03   -1.4991    
   5  norm          1.8523        3.7031        .19433E-03   -1.5436    
   6  Prefactor     .10000E-03    4.6795        .22481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1464        12.514        .70185E-03   -1.5137    
   8  Prefactor     .10000E-03    33.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    251.62        .21443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     111.38        44.342        .38113E-04   -1.3593    
  11  norm          .19799        18.000        .22728E-02   -1.5619    
  12  Prefactor     143.38        91.976        .16821E-03   -1.3307    
  13  norm          1.2298        1.1981        .76001E-04   -1.5486    
  14  Prefactor     13.935        6.5736        .10729E-03   -1.4961    
  15  norm          .10000E-03    5.9090        .17375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     85.053        50.560        .43553E-04   -1.3861    
  18  Prefactor     .10000E-03    1.8164        .96268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4267        .18129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.2699        3.9818        .12150E-03   -1.5249    
  21  Prefactor     6.0330        20.487        .16354E-03   -1.5217    
  22  Prefactor     17.765        28.151        .95041E-04   -1.4865    
  23  Prefactor     2.5674        3.8070        .82711E-03   -1.5387    
  24  norm          .10000E-03    11.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    24.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          14.030        7.7945        .10693E-03   -1.4959    
  27  Prefactor     29.033        48.619        .74358E-04   -1.4630    
  28  norm          .10000E-03    4.1630        .14587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    10.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.4090        .13205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .65576        .21820        .26961E-03   -1.0567    
  32  Prefactor     1.1424        .25104        .25377E-03   -.88124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67892e-08
Minuit parameter uncertainties:
  1  3.25294e-07
  2  1.37712e-05
  3  6.31741e-06
  4  11.094
  5  3.70358
  6  4.73233e-07
  7  12.5181
  8  7.33537e-05
  9  0.000492393
  10  44.3556
  11  3.7758
  12  92.0678
  13  1.19816
  14  6.57397
  15  9.51455e-07
  16  3.24308e-07
  17  50.5852
  18  4.66364e-06
  19  2.00273e-06
  20  3.98196
  21  20.5104
  22  28.1719
  23  3.80739
  24  1.79178e-07
  25  2.29345e-05
  26  7.79509
  27  48.6851
  28  9.99746e-07
  29  4.75523e-06
  30  1.42701e-06
  31  0.218491
  32  0.251301
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  9.515e-07  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.142e+00  2.513e-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:  6.558e-01  2.185e-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: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95826/likelihoodResults_316051201_316310401_4FGL_J1359.7+4012_daily_bin296.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) = 5369.29595448
delta logL = -0.000803506299235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5369.29515097
delta logL = -8.44920577947e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3306       1.0000          .0000       5.0000    
     3 'Normalizat'    .65576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1424       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5369.295     FROM MIGRAD    STATUS=FAILED        85 CALLS      229 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10018E-03    18.078        .17382E-02** at limit **
   2  alpha         2.4041        3.6910        .16509       -.12889E-05
   3  Normalizat    .65576        .20251        .26960E-03   -.24255E-03
   4  Prefactor     1.1424        .24709        .25377E-03   -.25309E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5369.295     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      347 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10018E-03    18.078        .41696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4041        3.6910        .32608E-03   -.38374E-01
   3  Normalizat    .65576        .20251        .54417E-04   -1.0567    
   4  Prefactor     1.1424        .24709        .44354E-04   -.88124    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5369.295     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      377 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9663        .34763E-03** at limit **
   2  alpha         2.4697        3.6661        .66035E-02   -.61979E-08
   3  Normalizat    .65576        .20269        .10784E-04    .15391E-03
   4  Prefactor     1.1424        .24731        .50755E-04    .16248E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4697
  Normalizat = 0.65576
  Prefactor  = 1.14236
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.295     FROM HESSE     STATUS=OK            23 CALLS      400 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9658        .69527E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4697        3.7596        .13207E-02   -.12118E-01
   3  Normalizat    .65576        .20257        .21568E-05   -1.0567    
   4  Prefactor     1.1424        .24720        .10151E-04   -.88124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59949e-11
Minuit parameter uncertainties:
  1  5.52081e-06
  2  357.064
  3  0.202796
  4  0.24745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95826': 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) = 5369.29515089
delta logL = 7.97226675786e-08

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  5.521e-06  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.470e+00  3.571e+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.142e+00  2.475e-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:  6.558e-01  2.028e-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/95826/cmap_HighResolution_316051201_316310401_4FGL_J1359.7+4012_daily_bin296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-05', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-09-08 19:50:38.110142', job_id='95826', GAL2='1.14', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1631155838.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='7.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='296' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:50:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 95826: <4FGL_J1359.7+4012_daily_bin296> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin296 209.928 40.2153 316051201 316310401 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.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

