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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin49
RA = 209.859, Dec = 2.0424
tmin = 252028801, tmax = 252288001
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='86428', job_status='RUN', time_executed='2021-09-08 19:07:43.373535', time_epoch_executed='1631153263.37' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86428

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86428/ft1_4FGL_J1359.4+0202_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86428/ft2_4FGL_J1359.4+0202_daily_bin49.fits


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

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

Done.
real 1.43
user 1.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86428/ft2_4FGL_J1359.4+0202_daily_bin49.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/86428/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/86428/ft1_filtered_4FGL_J1359.4+0202_daily_bin49.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.51
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86428/ft1_filtered_4FGL_J1359.4+0202_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/86428/ft2_4FGL_J1359.4+0202_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/86428/ltcube_252028801_252288001_4FGL_J1359.4+0202_daily_bin49.fits outfile=/scratch/kocevski/86428/expmap_252028801_252288001_4FGL_J1359.4+0202_daily_bin49.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/86428/ltcube_252028801_252288001_4FGL_J1359.4+0202_daily_bin49.fits
.....................!
real 191.73
user 185.33
sys 5.63

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/86428/ft1_filtered_4FGL_J1359.4+0202_daily_bin49.fits scfile=/scratch/kocevski/86428/ft2_4FGL_J1359.4+0202_daily_bin49.fits outfile=/scratch/kocevski/86428/cmap_252028801_252288001_4FGL_J1359.4+0202_daily_bin49.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86428/ft1_filtered_4FGL_J1359.4+0202_daily_bin49.fits scfile=/scratch/kocevski/86428/ft2_4FGL_J1359.4+0202_daily_bin49.fits outfile=/scratch/kocevski/86428/cmap_HighResolution_252028801_252288001_4FGL_J1359.4+0202_daily_bin49.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.2501       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.466       1.0000         .10000E-03   10000.    
     5 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3448       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0121       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.3311       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.229       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .23676E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    22.612       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6866       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4385       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78463       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=   9827.289     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1772 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7179       -.44636E-05** at limit **
   2  Prefactor     .10000E-03    3.8183        .21503E-05** at limit **
   3  norm          5.2500        1.4967       -.15753E-06   -.10446E-03
   4  Prefactor     24.450        22.827       -.52905E-05    .17016E-04
   5  norm          .10000E-03    7.8957       -.69116E-06** at limit **
   6  Prefactor     1.3448        2.4664       -.83286E-06   -.11999E-02
   7  Prefactor     .10000E-03    8.7663        .21495E-05** at limit **
   8  Prefactor     1.0121        2.7287       -.15431E-05   -.17384E-02
   9  Prefactor     .10000E-03    7.8886       -.79958E-06** at limit **
  10  norm          5.3346        2.4189       -.21946E-06   -.30928E-03
  11  Prefactor     21.222        16.819        .55501E-06    .23274E-04
  12  norm          .10000E-03    3.2955       -.21094E-07** at limit **
  13  norm          .10038E-03    3.5307        .18355E-06** at limit **
  14  Prefactor     .10000E-03    3.6016        .23089E-05** at limit **
  15  norm          22.603        17.067        .24849E-05    .24839E-04
  16  Prefactor     7.6355        34.986       -.91475E-04    .23459E-05
  17  Prefactor     .10000E-03    10.610       -.63920E-06** at limit **
  18  norm          .10000E-03    15.137       -.29996E-06** at limit **
  19  Normalizat    1.4384        .16959        .11609E-05    .16100E-03
  20  Prefactor     .78475        .11626        .21348E-05    .81395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.24997
  Prefactor  = 24.4501
  norm       = 0.0001
  Prefactor  = 1.34484
  Prefactor  = 0.0001
  Prefactor  = 1.01207
  Prefactor  = 0.0001
  norm       = 5.33463
  Prefactor  = 21.222
  norm       = 0.0001
  norm       = 0.000100376
  Prefactor  = 0.0001
  norm       = 22.603
  Prefactor  = 7.63555
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.4384
  Prefactor  = 0.784755
 **********
 **   18 **HESSE 
 **********

 FCN=   9827.289     FROM HESSE     STATUS=OK           299 CALLS     2071 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.2500        1.4976        .62200E-04   -1.5250    
   4  Prefactor     24.450        22.814        .80985E-04   -1.4719    
   5  norm          .10000E-03    7.9021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3448        2.4366        .20219E-03   -1.5476    
   7  Prefactor     .10000E-03    8.7999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0121        2.6927        .26119E-03   -1.5507    
   9  Prefactor     .10000E-03    7.9645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.3346        2.4167        .98355E-04   -1.5246    
  11  Prefactor     21.222        16.833        .86932E-04   -1.4786    
  12  norm          .10000E-03    3.3012        .17575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10038E-03    5.3041        .64310E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.603        17.067        .84235E-04   -1.4757    
  16  Prefactor     7.6355        34.920        .14464E-03   -1.5155    
  17  Prefactor     .10000E-03    10.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    15.580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4384        .20562        .25681E-03   -.79524    
  20  Prefactor     .78475        .14074        .23147E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24404e-09
Minuit parameter uncertainties:
  1  4.23712e-06
  2  1.05188e-05
  3  1.49763
  4  22.8217
  5  6.86899e-06
  6  2.43679
  7  3.22986e-05
  8  2.69305
  9  4.71193e-05
  10  2.41674
  11  16.8369
  12  4.74455e-06
  13  0.00282528
  14  1.2958e-06
  15  17.071
  16  32.6891
  17  3.42299e-05
  18  6.85997e-05
  19  0.205735
  20  0.140803
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  4.712e-05  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:  7.848e-01  1.408e-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.438e+00  2.057e-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: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86428/likelihoodResults_252028801_252288001_4FGL_J1359.4+0202_daily_bin49.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) = 9827.28916076
delta logL = -0.000598463402639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9827.28856337
delta logL = -1.06977677206e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3448       1.0000          .0000       10.000    
     3 'Normalizat'    1.4381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78496       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=   9827.289     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10139E-03    46.722        .18142E-02** at limit **
   2  Index         2.2860        5.5030        .50000        .29526E-04
   3  Normalizat    1.4384        .93942E-02    .25681E-03   -.33145E-03
   4  Prefactor     .78476        .65115E-02    .23147E-03   -.17946E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101395
  Index      = 2.28597
  Normalizat = 1.43839
  Prefactor  = 0.784757
 **********
 **   18 **HESSE 
 **********

 FCN=   9827.289     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10139E-03    206.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2860        7.0239        .50000       -.57378    
   3  Normalizat    1.4384        .20154E-01    .51363E-04   -.79524    
   4  Prefactor     .78476        .13969E-01    .92589E-05   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54015e-08
Minuit parameter uncertainties:
  1  0.034023
  2  275.766
  3  0.0201538
  4  0.0139695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86428': 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) = 9827.28856154
delta logL = 7.600083336e-07

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.014e-04  3.402e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.286e+00  2.758e+02  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:  7.848e-01  1.397e-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:  1.438e+00  2.015e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.859 2.042

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/86428/cmap_HighResolution_252028801_252288001_4FGL_J1359.4+0202_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-08 19:18:45.453238', job_id='86428', GAL2='0.78', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1631153925.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='7.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='49' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:18:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 86428: <4FGL_J1359.4+0202_daily_bin49> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin49> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:05:47 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:05:49 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:05:49 2021
Terminated at Wed Sep  8 19:18:46 2021
Results reported at Wed Sep  8 19:18:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin49 209.859 2.0424 252028801 252288001 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 :                                   661.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            779 sec.

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

