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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin320
RA = 209.928, Dec = 40.2153
tmin = 322272001, tmax = 322531201
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='95866', job_status='RUN', time_executed='2021-09-08 19:36:28.910429', time_epoch_executed='1631154988.91' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95866/ft1_4FGL_J1359.7+4012_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95866/ft2_4FGL_J1359.7+4012_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95866/ft1_4FGL_J1359.7+4012_daily_bin320.fits outfile=/scratch/kocevski/95866/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin320.fits ra=209.928 dec=40.2153 rad=12.0 tmin=322272001.0 tmax=322531201.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.43
user 3.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95866/ft2_4FGL_J1359.7+4012_daily_bin320.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/95866/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin320.fits evtable="EVENTS" outfile="/scratch/kocevski/95866/ft1_filtered_4FGL_J1359.7+4012_daily_bin320.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95866/ft1_filtered_4FGL_J1359.7+4012_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/95866/ft2_4FGL_J1359.7+4012_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/95866/ltcube_322272001_322531201_4FGL_J1359.7+4012_daily_bin320.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/95866/ft2_4FGL_J1359.7+4012_daily_bin320.fits
.....................!
real 11.94
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95866/ft1_filtered_4FGL_J1359.7+4012_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/95866/ft2_4FGL_J1359.7+4012_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/95866/ltcube_322272001_322531201_4FGL_J1359.7+4012_daily_bin320.fits outfile=/scratch/kocevski/95866/expmap_322272001_322531201_4FGL_J1359.7+4012_daily_bin320.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/95866/ltcube_322272001_322531201_4FGL_J1359.7+4012_daily_bin320.fits
.....................!
real 192.32
user 186.78
sys 5.16

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/95866/ft1_filtered_4FGL_J1359.7+4012_daily_bin320.fits scfile=/scratch/kocevski/95866/ft2_4FGL_J1359.7+4012_daily_bin320.fits outfile=/scratch/kocevski/95866/cmap_322272001_322531201_4FGL_J1359.7+4012_daily_bin320.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95866/ft1_filtered_4FGL_J1359.7+4012_daily_bin320.fits scfile=/scratch/kocevski/95866/ft2_4FGL_J1359.7+4012_daily_bin320.fits outfile=/scratch/kocevski/95866/cmap_HighResolution_322272001_322531201_4FGL_J1359.7+4012_daily_bin320.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95866/ft1_filtered_4FGL_J1359.7+4012_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/95866/ft2_4FGL_J1359.7+4012_daily_bin320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95866/Model_4FGL_J1359.7+4012_daily_bin320.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/95866/ft1_filtered_4FGL_J1359.7+4012_daily_bin320.fits.....................!
real 47.48
user 45.86
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.805       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.8062       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0558       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37863E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.522       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10464E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.021       1.0000         .10000E-03   10000.    
    13 'norm      '    8.6885       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2361       1.0000         .10000E-03   10000.    
    15 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.882       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0867       1.0000         .10000E-03   10000.    
    20 'norm      '    10.953       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7913       1.0000         .10000E-03   10000.    
    24 'norm      '    12.287       1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.992       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    27.813       1.0000         .10000E-03   10000.    
    28 'norm      '    7.9459       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1419       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .75434       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=   5861.562     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4327 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.843       -.61012E-05** at limit **
   2  Prefactor     29.806        17.752       -.30296E-06    .29972E-04
   3  norm          .10000E-03    2.2992       -.51548E-07** at limit **
   4  norm          9.8068        10.289       -.44911E-06   -.68364E-06
   5  norm          3.0555        3.9176        .45502E-07   -.66541E-04
   6  Prefactor     .10002E-03    1.3334       -.14913E-07** at limit **
   7  Prefactor     .10000E-03    4.8801        .35555E-06** at limit **
   8  Prefactor     21.514        31.338       -.12756E-04   -.15100E-04
   9  Prefactor     .10000E-03    26.466       -.41480E-05** at limit **
  10  Prefactor     .10000E-03    16.468        .22987E-05** at limit **
  11  norm          .10000E-03    3.7166        .46198E-06** at limit **
  12  Prefactor     21.005        51.960       -.32729E-04    .10889E-04
  13  norm          8.6879        2.0488       -.36247E-07    .32640E-03
  14  Prefactor     2.2362        3.2518       -.10065E-05   -.55840E-03
  15  norm          .10000E-03    10.443        .49232E-05** at limit **
  16  Prefactor     .10000E-03    14.516       -.43597E-05** at limit **
  17  Prefactor     54.871        40.325       -.12359E-04    .43375E-04
  18  Prefactor     .10000E-03    2.4375        .28255E-06** at limit **
  19  Prefactor     1.0781        11.698       -.16095E-05    .19182E-03
  20  norm          10.952        5.0953       -.40469E-06    .41310E-04
  21  Prefactor     .10000E-03    3.6972       -.92543E-07** at limit **
  22  Prefactor     .10000E-03    11.186       -.71156E-06** at limit **
  23  Prefactor     1.7913        1.9607       -.20790E-06    .61757E-04
  24  norm          12.286        13.048       -.35935E-06    .14611E-04
  25  Prefactor     33.976        28.212       -.17287E-04    .46556E-04
  26  norm          .10000E-03    5.7738       -.12989E-05** at limit **
  27  Prefactor     27.811        26.974       -.14642E-05    .15635E-04
  28  norm          7.9461        7.3235       -.15473E-06    .35981E-05
  29  Prefactor     .10000E-03    11.824       -.32863E-05** at limit **
  30  Prefactor     .10000E-03    18.535        .10140E-04** at limit **
  31  Normalizat    1.1423        .18074        .64059E-05   -.18476E-03
  32  Prefactor     .75389        .20920        .65860E-06    .20190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.806
  norm       = 0.0001
  norm       = 9.80675
  norm       = 3.05546
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 21.5136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 21.0046
  norm       = 8.68786
  Prefactor  = 2.23616
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.8705
  Prefactor  = 0.0001
  Prefactor  = 1.07811
  norm       = 10.9521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7913
  norm       = 12.2861
  Prefactor  = 33.9755
  norm       = 0.0001
  Prefactor  = 27.8107
  norm       = 7.94611
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.14232
  Prefactor  = 0.753888
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.562     FROM HESSE     STATUS=OK           661 CALLS     4988 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.806        17.690        .73388E-04   -1.4616    
   3  norm          .10000E-03    2.3094        .11329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.8068        10.290        .12797E-03   -1.5082    
   5  norm          3.0555        3.9002        .16282E-03   -1.5358    
   6  Prefactor     .10002E-03    9.4225        .17024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8927        .16512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.514        31.188        .86338E-04   -1.4780    
   9  Prefactor     .10000E-03    26.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.034        .28421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.005        52.031        .87360E-04   -1.4791    
  13  norm          8.6879        2.0530        .50684E-04   -1.5118    
  14  Prefactor     2.2362        3.2416        .16010E-03   -1.5409    
  15  norm          .10000E-03    10.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.871        40.228        .54145E-04   -1.4225    
  18  Prefactor     .10000E-03    2.4570        .11660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0781        59.857        .48938E-02   -1.5500    
  20  norm          10.952        5.0955        .11254E-03   -1.5046    
  21  Prefactor     .10000E-03    3.7007        .14375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7913        1.9615        .10890E-03   -1.5440    
  24  norm          12.286        13.042        .11428E-03   -1.5007    
  25  Prefactor     33.976        28.202        .68732E-04   -1.4542    
  26  norm          .10000E-03    5.9489        .35914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     27.811        26.971        .75965E-04   -1.4653    
  28  norm          7.9461        7.3235        .14224E-03   -1.5144    
  29  Prefactor     .10000E-03    11.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    18.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1423        .21124        .21374E-03   -.88405    
  32  Prefactor     .75389        .24556        .31407E-03   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66213e-09
Minuit parameter uncertainties:
  1  7.82723e-06
  2  17.6935
  3  9.69528e-06
  4  10.2919
  5  3.90051
  6  0.000836147
  7  1.72058e-05
  8  31.2113
  9  3.71449e-05
  10  0.000119943
  11  0.000284995
  12  52.144
  13  2.05306
  14  3.2419
  15  3.83729e-05
  16  1.64512e-05
  17  40.248
  18  4.43461e-05
  19  16.0827
  20  5.0957
  21  1.61407e-06
  22  9.44934e-06
  23  1.96159
  24  13.0446
  25  28.2134
  26  2.40735e-05
  27  26.9831
  28  7.32429
  29  4.44742e-05
  30  0.00024404
  31  0.211398
  32  0.245913
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  3.837e-05  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:  7.539e-01  2.459e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.142e+00  2.114e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95866/likelihoodResults_322272001_322531201_4FGL_J1359.7+4012_daily_bin320.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): 102
logL (Free Index) = 5861.56221064
delta logL = -0.000447898632956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5861.56176252
delta logL = 2.2375570552e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3622       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75387       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=   5861.443     FROM MIGRAD    STATUS=FAILED       152 CALLS      296 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72597        105.86        .18142E-01    .12738E-02
   2  alpha         5.0000        3.8870        .50000    ** at limit **
   3  Normalizat    1.1106        .91475E-01    .21374E-03    .11702E-05
   4  Prefactor     .77902        .81900E-01    .31407E-03    .94476E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5861.443     FROM SIMPLEX   STATUS=UNCHANGED    147 CALLS      443 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72597        105.86        .71868E-06    .12738E-02
   2  alpha         5.0000        3.8870        .17814E-01** at limit **
   3  Normalizat    1.1106        .91475E-01    .89742E-07    .11702E-05
   4  Prefactor     .77902        .81900E-01    .97734E-08    .94476E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5861.443     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      478 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72597        1.6523        .12785E-03   -.29344E-05
   2  alpha         5.0000        4.6957        .50000    ** at limit **
   3  Normalizat    1.1106        .21158        .85497E-05    .10638E-05
   4  Prefactor     .77902        .25082        .12563E-04    .94114E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.725971
  alpha      = 5
  Normalizat = 1.11063
  Prefactor  = 0.779015
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.443     FROM HESSE     STATUS=OK            29 CALLS      507 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72597        1.6465        .51140E-05   -1.5538    
   2  alpha         5.0000        4.6894        .50000        45.553    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1106        .21159        .17099E-05   -.89411    
   4  Prefactor     .77902        .25084        .25126E-05   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90952e-12
Minuit parameter uncertainties:
  1  1.64659
  2  4.55676e-05
  3  0.211752
  4  0.251209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95866': 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) = 5861.44332127
delta logL = 0.118441469395

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  7.260e-01  1.647e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  5.000e+00  4.557e-05  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:  7.790e-01  2.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.111e+00  2.118e-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/95866/cmap_HighResolution_322272001_322531201_4FGL_J1359.7+4012_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-05', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2021-09-08 19:52:32.581943', job_id='95866', GAL2='0.78', fit_tolerance='1e-08', EG2='1.11', EG='1.14', time_epoch_completed='1631155952.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.18e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='320' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:52:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 95866: <4FGL_J1359.7+4012_daily_bin320> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin320 209.928 40.2153 322272001 322531201 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 :                                   942.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

