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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin110
RA = 209.859, Dec = 2.0424
tmin = 267840001, tmax = 268099201
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='86565', job_status='RUN', time_executed='2021-09-08 19:09:58.516713', time_epoch_executed='1631153398.52' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86565/ft1_4FGL_J1359.4+0202_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86565/ft2_4FGL_J1359.4+0202_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86565/ft1_4FGL_J1359.4+0202_daily_bin110.fits outfile=/scratch/kocevski/86565/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin110.fits ra=209.859 dec=2.0424 rad=12.0 tmin=267840001.0 tmax=268099201.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.46
user 1.30
sys 0.15

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86565/ft1_filtered_4FGL_J1359.4+0202_daily_bin110.fits" evtable="EVENTS" scfile=/scratch/kocevski/86565/ft2_4FGL_J1359.4+0202_daily_bin110.fits sctable="SC_DATA" outfile=/scratch/kocevski/86565/ltcube_267840001_268099201_4FGL_J1359.4+0202_daily_bin110.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/86565/ft2_4FGL_J1359.4+0202_daily_bin110.fits
.....................!
real 13.10
user 12.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86565/ft1_filtered_4FGL_J1359.4+0202_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/86565/ft2_4FGL_J1359.4+0202_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/86565/ltcube_267840001_268099201_4FGL_J1359.4+0202_daily_bin110.fits outfile=/scratch/kocevski/86565/expmap_267840001_268099201_4FGL_J1359.4+0202_daily_bin110.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/86565/ltcube_267840001_268099201_4FGL_J1359.4+0202_daily_bin110.fits
.....................!
real 192.88
user 186.20
sys 4.31

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/86565/ft1_filtered_4FGL_J1359.4+0202_daily_bin110.fits scfile=/scratch/kocevski/86565/ft2_4FGL_J1359.4+0202_daily_bin110.fits outfile=/scratch/kocevski/86565/cmap_267840001_268099201_4FGL_J1359.4+0202_daily_bin110.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86565/ft1_filtered_4FGL_J1359.4+0202_daily_bin110.fits scfile=/scratch/kocevski/86565/ft2_4FGL_J1359.4+0202_daily_bin110.fits outfile=/scratch/kocevski/86565/cmap_HighResolution_267840001_268099201_4FGL_J1359.4+0202_daily_bin110.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.780       1.0000         .10000E-03   10000.    
     3 'norm      '    .11346E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.656       1.0000         .10000E-03   10000.    
     5 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .79306E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3148       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.870       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    21.442       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3312       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    99.224       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.462       1.0000         .10000E-03   10000.    
    18 'norm      '    .26845E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4058       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75889       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=   6659.319     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2123 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.655       -.13199E-06** at limit **
   2  Prefactor     11.780        9.7893        .58924E-06   -.34779E-04
   3  norm          .10000E-03    .57814       -.10821E-06** at limit **
   4  Prefactor     18.655        37.458       -.37183E-05   -.19677E-04
   5  norm          .10000E-03    27.944        .38676E-06** at limit **
   6  Prefactor     .10000E-03    1.2696        .37992E-09** at limit **
   7  Prefactor     .10000E-03    4.2965       -.35902E-07** at limit **
   8  Prefactor     .14954E-01    3.9642        .90002E-06   -.85824E-03
   9  Prefactor     .10000E-03    6.7074       -.13885E-06** at limit **
  10  norm          1.3141        1.7040       -.17722E-06   -.45248E-03
  11  Prefactor     19.867        20.149        .41674E-05    .73362E-05
  12  norm          .10000E-03    4.2448       -.38177E-07** at limit **
  13  norm          21.443        10.081       -.62900E-07    .12052E-04
  14  Prefactor     4.3358        32.877       -.83284E-05   -.25571E-04
  15  norm          .10000E-03    12.438        .15219E-06** at limit **
  16  Prefactor     99.219        56.676       -.29272E-05    .12456E-04
  17  Prefactor     39.514        31.369       -.14726E-04    .10275E-03
  18  norm          .10012E-03    53.955       -.45650E-05** at limit **
  19  Normalizat    1.4059        .19525        .59932E-06   -.34196E-05
  20  Prefactor     .75890        .13237        .80406E-06   -.21258E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.7797
  norm       = 0.0001
  Prefactor  = 18.6547
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0149541
  Prefactor  = 0.0001
  norm       = 1.31411
  Prefactor  = 19.8672
  norm       = 0.0001
  norm       = 21.4433
  Prefactor  = 4.33579
  norm       = 0.0001
  Prefactor  = 99.2194
  Prefactor  = 39.5144
  norm       = 0.000100119
  Normalizat = 1.40585
  Prefactor  = 0.758904
 **********
 **   18 **HESSE 
 **********

 FCN=   6659.319     FROM HESSE     STATUS=OK           299 CALLS     2422 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.780        9.7858        .11672E-03   -1.5021    
   3  norm          .10000E-03    4.9413        .11931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.655        37.451        .92729E-04   -1.4844    
   5  norm          .10000E-03    28.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.2806        .89771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2977        .16520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .14954E-01    4.0702        .48917E-01   -1.5684    
   9  Prefactor     .10000E-03    6.7364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3141        1.6776        .11628E-03   -1.5479    
  11  Prefactor     19.867        20.167        .89853E-04   -1.4816    
  12  norm          .10000E-03    4.2513        .16420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.443        10.057        .86499E-04   -1.4781    
  14  Prefactor     4.3358        33.116        .19356E-03   -1.5291    
  15  norm          .10000E-03    12.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     99.219        56.678        .40357E-04   -1.3712    
  17  Prefactor     39.514        31.217        .63807E-04   -1.4450    
  18  norm          .10012E-03    53.787        .42872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4059        .23235        .25031E-03   -.80459    
  20  Prefactor     .75890        .15743        .22616E-03   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98196e-09
Minuit parameter uncertainties:
  1  1.85015e-05
  2  9.78716
  3  2.69897e-05
  4  37.4984
  5  2.26341e-05
  6  2.58561e-06
  7  3.78475e-06
  8  0.491804
  9  2.98979e-05
  10  1.67762
  11  20.1738
  12  3.28782e-06
  13  10.058
  14  23.9837
  15  3.24825e-05
  16  56.7085
  17  31.2298
  18  0.0050637
  19  0.23252
  20  0.157521
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.990e-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.589e-01  1.575e-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.406e+00  2.325e-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: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86565/likelihoodResults_267840001_268099201_4FGL_J1359.4+0202_daily_bin110.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) = 6659.32001648
delta logL = -0.000707169963789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6659.31930941
delta logL = -9.86647137324e-08

Fit tolerance = 1e-08

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

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

 FCN=   6659.319     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    532.35        .90712E-02** at limit **
   2  Index         2.3958        6.5938        .50000       -.73703E-05
   3  Normalizat    1.4059        .48455E-01    .56607E-01    .23063E-04
   4  Prefactor     .75890        .33435E-01    .43181E-01    .30601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39585
  Normalizat = 1.40585
  Prefactor  = 0.758904
 **********
 **   18 **HESSE 
 **********

 FCN=   6659.319     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1165.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3958        6.1628        .50000       -.54782    
   3  Normalizat    1.4059        .93600E-01    .25031E-03   -.80459    
   4  Prefactor     .75890        .64633E-01    .22616E-03   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.78816e-09
Minuit parameter uncertainties:
  1  7.03741e-05
  2  57.2866
  3  0.0936118
  4  0.0646393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86565': 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) = 6659.3193093
delta logL = 1.79879862117e-08

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  7.037e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.396e+00  5.729e+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:  7.589e-01  6.464e-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.406e+00  9.361e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/86565/cmap_HighResolution_267840001_268099201_4FGL_J1359.4+0202_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-08 19:19:33.020559', job_id='86565', GAL2='0.76', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631153973.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.80e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='110' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:19:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 86565: <4FGL_J1359.4+0202_daily_bin110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin110 209.859 2.0424 267840001 268099201 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 :                                   570.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

