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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin673
RA = 209.859, Dec = 2.0424
tmin = 413769601, tmax = 414028801
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='91122', job_status='RUN', time_executed='2021-09-08 19:22:55.863107', time_epoch_executed='1631154175.86' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91122

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91122/ft1_4FGL_J1359.4+0202_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91122/ft2_4FGL_J1359.4+0202_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91122/ft1_4FGL_J1359.4+0202_daily_bin673.fits outfile=/scratch/kocevski/91122/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin673.fits ra=209.859 dec=2.0424 rad=12.0 tmin=413769601.0 tmax=414028801.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 6.16
user 5.92
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91122/ft1_filtered_4FGL_J1359.4+0202_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/91122/ft2_4FGL_J1359.4+0202_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/91122/ltcube_413769601_414028801_4FGL_J1359.4+0202_daily_bin673.fits outfile=/scratch/kocevski/91122/expmap_413769601_414028801_4FGL_J1359.4+0202_daily_bin673.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/91122/ltcube_413769601_414028801_4FGL_J1359.4+0202_daily_bin673.fits
.....................!
real 190.35
user 185.04
sys 4.93

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/91122/ft1_filtered_4FGL_J1359.4+0202_daily_bin673.fits scfile=/scratch/kocevski/91122/ft2_4FGL_J1359.4+0202_daily_bin673.fits outfile=/scratch/kocevski/91122/cmap_413769601_414028801_4FGL_J1359.4+0202_daily_bin673.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91122/ft1_filtered_4FGL_J1359.4+0202_daily_bin673.fits scfile=/scratch/kocevski/91122/ft2_4FGL_J1359.4+0202_daily_bin673.fits outfile=/scratch/kocevski/91122/cmap_HighResolution_413769601_414028801_4FGL_J1359.4+0202_daily_bin673.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/91122/ft1_filtered_4FGL_J1359.4+0202_daily_bin673.fits', '/scratch/kocevski/91122/ft2_4FGL_J1359.4+0202_daily_bin673.fits', expMap='/scratch/kocevski/91122/expmap_413769601_414028801_4FGL_J1359.4+0202_daily_bin673.fits', expCube='/scratch/kocevski/91122/ltcube_413769601_414028801_4FGL_J1359.4+0202_daily_bin673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/91122/Model_4FGL_J1359.4+0202_daily_bin673.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/91122/ft1_filtered_4FGL_J1359.4+0202_daily_bin673.fits
Spacecraft file(s): /scratch/kocevski/91122/ft2_4FGL_J1359.4+0202_daily_bin673.fits
Exposure map: /scratch/kocevski/91122/expmap_413769601_414028801_4FGL_J1359.4+0202_daily_bin673.fits
Exposure cube: /scratch/kocevski/91122/ltcube_413769601_414028801_4FGL_J1359.4+0202_daily_bin673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/91122/Model_4FGL_J1359.4+0202_daily_bin673.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) = 6824.29234441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38545E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.660       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1831       1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.670       1.0000         .10000E-03   10000.    
     5 'norm      '    .55476E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21164E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11247E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.860       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6547       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11368E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5206       1.0000         .10000E-03   10000.    
    13 'norm      '    15.601       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4213       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4386       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2139       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90933       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6824.290     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     2425 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    121.60        .65840E-02** at limit **
   2  Prefactor     17.670        17.769        .95307E-04   -.85885E-04
   3  norm          4.1825        1.8411        .71297E-04   -.93441E-04
   4  Prefactor     56.624        62.595        .53289E-04    .25601E-04
   5  norm          .10034E-03    31.320        .13900    ** at limit **
   6  Prefactor     .12457E-03    3.8003        .47419E-01** at limit **
   7  Prefactor     .10000E-03    10.529        .18142E-02** at limit **
   8  Prefactor     .10000E-03    3.4040        .14802E-02** at limit **
   9  Prefactor     26.832        17.128        .77298E-04   -.18679E-03
  10  norm          2.6540        1.9356        .94206E-04   -.16328E-03
  11  Prefactor     .10000E-03    11.318        .18142E-02** at limit **
  12  norm          5.5192        6.3803        .17100E-03   -.38561E-05
  13  norm          15.602        8.3352        .10140E-03    .75566E-04
  14  Prefactor     6.4197        18.672        .15839E-03   -.10982E-04
  15  norm          5.4316        28.705        .17230E-03   -.15175E-05
  16  Prefactor     .10000E-03    35.079        .18142E-02** at limit **
  17  Prefactor     .10000E-03    15.343        .18142E-02** at limit **
  18  norm          .10000E-03    6.7494        .18142E-02** at limit **
  19  Normalizat    1.2137        .25447        .28290E-03   -.30814E-03
  20  Prefactor     .90955        .16698        .21571E-03   -.44611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100137
  Prefactor  = 17.6696
  norm       = 4.18251
  Prefactor  = 56.6239
  norm       = 0.000100341
  Prefactor  = 0.000124567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8322
  norm       = 2.65401
  Prefactor  = 0.0001
  norm       = 5.51918
  norm       = 15.6016
  Prefactor  = 6.41971
  norm       = 5.4316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.21373
  Prefactor  = 0.909554
 **********
 **   18 **HESSE 
 **********

 FCN=   6824.290     FROM HESSE     STATUS=OK           291 CALLS     2716 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    125.76        .26336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.670        17.770        .38123E-05   -1.4867    
   3  norm          4.1825        1.8411        .28519E-05   -1.5299    
   4  Prefactor     56.624        62.596        .10658E-04   -1.4202    
   5  norm          .10034E-03    31.112        .13972       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12457E-03    3.7770        .47649E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4049        .29605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.832        17.128        .30919E-05   -1.4672    
  10  norm          2.6540        1.9355        .37683E-05   -1.5382    
  11  Prefactor     .10000E-03    11.319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5192        6.3803        .68399E-05   -1.5238    
  13  norm          15.602        8.3352        .40560E-05   -1.4918    
  14  Prefactor     6.4197        18.672        .63355E-05   -1.5201    
  15  norm          5.4316        28.704        .68922E-05   -1.5242    
  16  Prefactor     .10000E-03    35.081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.344        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.7498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2137        .25469        .56579E-04   -.86180    
  20  Prefactor     .90955        .16715        .43141E-04   -.95808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71412e-09
Minuit parameter uncertainties:
  1  0.00833108
  2  17.7748
  3  1.84112
  4  62.6687
  5  0.00651596
  6  0.0192666
  7  3.86616e-05
  8  1.72004e-05
  9  17.1308
  10  1.93556
  11  3.1168e-05
  12  6.38112
  13  8.33581
  14  18.6886
  15  24.9912
  16  2.95873e-05
  17  4.7219e-06
  18  2.06614e-06
  19  0.254953
  20  0.167241
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.683e+01  1.713e+01  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:  9.096e-01  1.672e-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.214e+00  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 8.52e-08 +/- 5.44e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 1.82e-05

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) = 6823.91259889
delta logL = 0.3776443831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6823.90785148
delta logL = 0.382391793943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.291       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0513       1.0000          .0000       10.000    
     3 'Normalizat'    1.1383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94731       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6823.908     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      285 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.284        327.77        .11922E-03    .44417E-03
   2  Index         3.0517        6.5067        .40076E-02    .20390E-03
   3  Normalizat    1.1382        .54261        .29075E-03    .19445E-03
   4  Prefactor     .94732        .34090        .21191E-03   -.81770E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2836
  Index      = 3.05166
  Normalizat = 1.13824
  Prefactor  = 0.947325
 **********
 **   18 **HESSE 
 **********

 FCN=   6823.908     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.284        19.477        .47689E-05   -1.5036    
   2  Index         3.0517        .94044        .16030E-03   -.40027    
   3  Normalizat    1.1382        .26714        .11630E-04   -.88533    
   4  Prefactor     .94732        .17412        .42383E-04   -.94507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67353e-09
Minuit parameter uncertainties:
  1  19.4881
  2  0.947105
  3  0.267454
  4  0.17422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91122': 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) = 6823.90785139
delta logL = 0.382391887369

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.128e+01  1.949e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.052e+00  9.471e-01  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:  9.473e-01  1.742e-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.138e+00  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.01
Ra Dec: 209.859 2.042
Photon Index (Free Index): 3.05 +/- 0.95
Photon Flux (Free Index): 1.33e-07 +/- 8.43e-08
Energy Flux (Free Index): 2.58e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/91122/cmap_HighResolution_413769601_414028801_4FGL_J1359.4+0202_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.52e-08', energy_flux2='2.58e-05', photon_flux_error='5.44e-08', dlogl='3.82e-01', energy_flux='2.85e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-08 19:32:27.766825', photon_index_error2='0.95', photon_index2='3.05', ts='4.10', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.21', time_epoch_completed='1631154747.77', return_code='0', job_id='91122', GAL2='0.95', EG2='1.14', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='8.43e-08', ts2='5.01', photon_index='2.39' WHERE bin_id='673' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:32:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 91122: <4FGL_J1359.4+0202_daily_bin673> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin673 209.859 2.0424 413769601 414028801 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 :                                   564.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            717 sec.

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

