/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 164 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 = 7354
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1359.4+0202_daily_bin553
RA = 209.859, Dec = 2.0424
tmin = 382665601, tmax = 382924801
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='90944', job_status='RUN', time_executed='2021-09-08 19:23:14.581140', time_epoch_executed='1631154194.58' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90944

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90944/ft1_4FGL_J1359.4+0202_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90944/ft2_4FGL_J1359.4+0202_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90944/ft1_4FGL_J1359.4+0202_daily_bin553.fits outfile=/scratch/kocevski/90944/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin553.fits ra=209.859 dec=2.0424 rad=12.0 tmin=382665601.0 tmax=382924801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.34
user 3.12
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/90944/ft2_4FGL_J1359.4+0202_daily_bin553.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90944/ft2_4FGL_J1359.4+0202_daily_bin553.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/90944/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin553.fits evtable="EVENTS" outfile="/scratch/kocevski/90944/ft1_filtered_4FGL_J1359.4+0202_daily_bin553.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90944/ft1_filtered_4FGL_J1359.4+0202_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/90944/ft2_4FGL_J1359.4+0202_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/90944/ltcube_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.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/90944/ft2_4FGL_J1359.4+0202_daily_bin553.fits
.....................!
real 12.09
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90944/ft1_filtered_4FGL_J1359.4+0202_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/90944/ft2_4FGL_J1359.4+0202_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/90944/ltcube_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.fits outfile=/scratch/kocevski/90944/expmap_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.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/90944/ltcube_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.fits
.....................!
real 189.69
user 185.37
sys 3.95

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J1359.4+0202 @ 209.859 2.0424

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/90944/ft1_filtered_4FGL_J1359.4+0202_daily_bin553.fits scfile=/scratch/kocevski/90944/ft2_4FGL_J1359.4+0202_daily_bin553.fits outfile=/scratch/kocevski/90944/cmap_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.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.859 yref=2.0424 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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90944/ft1_filtered_4FGL_J1359.4+0202_daily_bin553.fits scfile=/scratch/kocevski/90944/ft2_4FGL_J1359.4+0202_daily_bin553.fits outfile=/scratch/kocevski/90944/cmap_HighResolution_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.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.859 yref=2.0424 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90944/ft1_filtered_4FGL_J1359.4+0202_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/90944/ft2_4FGL_J1359.4+0202_daily_bin553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90944/Model_4FGL_J1359.4+0202_daily_bin553.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/90944/ft1_filtered_4FGL_J1359.4+0202_daily_bin553.fits.....................!
real 47.07
user 45.66
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90944/ft1_filtered_4FGL_J1359.4+0202_daily_bin553.fits', '/scratch/kocevski/90944/ft2_4FGL_J1359.4+0202_daily_bin553.fits', expMap='/scratch/kocevski/90944/expmap_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.fits', expCube='/scratch/kocevski/90944/ltcube_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90944/Model_4FGL_J1359.4+0202_daily_bin553.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.4+0202'

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.682e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/90944/ft1_filtered_4FGL_J1359.4+0202_daily_bin553.fits
Spacecraft file(s): /scratch/kocevski/90944/ft2_4FGL_J1359.4+0202_daily_bin553.fits
Exposure map: /scratch/kocevski/90944/expmap_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.fits
Exposure cube: /scratch/kocevski/90944/ltcube_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90944/Model_4FGL_J1359.4+0202_daily_bin553.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) = 6000.45519154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5697       1.0000         .10000E-03   10000.    
     3 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7468       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31847E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .97715       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4177       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.501       1.0000         .10000E-03   10000.    
    15 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.615       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14624E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    26.066       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0664       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1510       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6000.433     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2359 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3712       -.53309E-07** at limit **
   2  Prefactor     7.5694        7.7121       -.55815E-06    .45761E-04
   3  norm          .10000E-03    .57978       -.49204E-06** at limit **
   4  Prefactor     .10000E-03    29.093        .10054E-04** at limit **
   5  norm          .10000E-03    21.842        .70512E-05** at limit **
   6  Prefactor     .10000E-03    5.0603       -.53493E-06** at limit **
   7  Prefactor     7.7456        18.244       -.33850E-06    .82122E-04
   8  Prefactor     .10000E-03    3.0442       -.15920E-05** at limit **
   9  Prefactor     .10199E-03    10.458       -.17647E-05** at limit **
  10  norm          .97947        2.3805       -.18029E-05   -.13504E-02
  11  Prefactor     .10000E-03    11.415        .37096E-06** at limit **
  12  norm          7.4196        8.8540       -.52484E-06   -.52879E-05
  13  norm          .10000E-03    3.8629       -.26395E-07** at limit **
  14  Prefactor     16.519        26.974       -.17220E-04    .66129E-04
  15  norm          .10000E-03    14.394       -.67473E-06** at limit **
  16  Prefactor     40.514        63.691       -.97065E-04    .32731E-04
  17  Prefactor     .10000E-03    26.558       -.15544E-04** at limit **
  18  norm          26.075        23.363       -.67334E-05    .16910E-03
  19  Normalizat    1.0662        .22145        .64208E-05    .56805E-03
  20  Prefactor     1.1508        .15603        .36706E-05    .78525E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.56937
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.74558
  Prefactor  = 0.000100004
  Prefactor  = 0.000101994
  norm       = 0.979475
  Prefactor  = 0.0001
  norm       = 7.41962
  norm       = 0.0001
  Prefactor  = 16.519
  norm       = 0.0001
  Prefactor  = 40.514
  Prefactor  = 0.000100002
  norm       = 26.0749
  Normalizat = 1.06622
  Prefactor  = 1.15078
 **********
 **   18 **HESSE 
 **********

 FCN=   6000.433     FROM HESSE     STATUS=OK           295 CALLS     2654 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3744        .17534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5694        7.7159        .14576E-03   -1.5158    
   3  norm          .10000E-03    .96310        .11440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    21.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2654        .33977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.7456        18.237        .14407E-03   -1.5151    
   8  Prefactor     .10000E-03    10.607        .25980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10199E-03    17.404        .70782E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .97947        2.3770        .17883E-03   -1.5510    
  11  Prefactor     .10000E-03    11.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4196        8.8558        .14726E-03   -1.5163    
  13  norm          .10000E-03    3.8767        .14867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.519        27.022        .98598E-04   -1.4895    
  15  norm          .10000E-03    14.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.514        63.750        .62898E-04   -1.4434    
  17  Prefactor     .10000E-03    26.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          26.075        23.329        .78464E-04   -1.4686    
  19  Normalizat    1.0662        .26375        .29220E-03   -.90844    
  20  Prefactor     1.1508        .18646        .20311E-03   -.87860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79669e-09
Minuit parameter uncertainties:
  1  1.80693e-05
  2  7.71687
  3  4.61769e-05
  4  8.50609e-05
  5  7.38211e-05
  6  0.00013529
  7  18.25
  8  0.000432491
  9  0.0117867
  10  2.37721
  11  2.08518e-05
  12  8.85732
  13  7.82289e-06
  14  27.042
  15  0.000143102
  16  63.8572
  17  0.000485293
  18  23.3375
  19  0.264079
  20  0.186569
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.020e-04  1.179e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.151e+00  1.866e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.066e+00  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90944/likelihoodResults_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.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) = 6000.43260785
delta logL = -1.61375055541e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6000.43260785
delta logL = -1.61306861628e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3850       1.0000          .0000       10.000    
     3 'Normalizat'    1.0662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1508       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5998.966     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      328 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .78845E-03   -.51843E-07** at limit **
   2  Index         7.9511        .28854       -.34046E-06    .33752E-04
   3  Normalizat    .92710        .26724        .12737E-05    .90131E-05
   4  Prefactor     1.2189        .18967        .47985E-06    .88057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.95113
  Normalizat = 0.927096
  Prefactor  = 1.21893
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.966     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      371 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .29110E-02    .29505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9511        2.2681        .11681        .63134    
   3  Normalizat    .92710        .59636E-01    .70194E-01   -.95514    
   4  Prefactor     1.2189        .42140E-01    .35914E-01   -.85751    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02136e-08
Minuit parameter uncertainties:
  1  7.94108e-09
  2  2.40855
  3  0.0596406
  4  0.0421412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90944': 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): 102
logL (Free Index) = 5998.96631663
delta logL = 1.46627508614

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  7.941e-09  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  7.951e+00  2.409e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.219e+00  4.214e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  9.271e-01  5.964e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 209.859 2.042
Photon Index (Free Index): 7.95 +/- 2.41
Photon Flux (Free Index): 9.51e-08 +/- 5.41e-07
Energy Flux (Free Index): 1.10e-05 +/- 6.25e-05

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/90944/cmap_HighResolution_382665601_382924801_4FGL_J1359.4+0202_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.20e-03', comment='SUCCESS', energy_flux2='1.10e-05', dlogl='1.47e+00', photon_flux2='9.51e-08', job_status='DONE', time_completed='2021-09-08 19:32:47.787601', photon_index_error2='2.41', photon_index2='7.95', ts='-0.00', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='6.25e-05', EG='1.07', time_epoch_completed='1631154767.79', return_code='0', job_id='90944', GAL2='1.22', EG2='0.93', return_code2='102', photon_flux_error2='5.41e-07', ts2='3.18', photon_index='2.39' WHERE bin_id='553' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:32:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 90944: <4FGL_J1359.4+0202_daily_bin553> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin553> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 19:20:17 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:20:18 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:20:18 2021
Terminated at Wed Sep  8 19:32:52 2021
Results reported at Wed Sep  8 19:32:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin553 209.859 2.0424 382665601 382924801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.4+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   566.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            755 sec.

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

