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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin1322
RA = 209.859, Dec = 2.0424
tmin = 581990401, tmax = 582249601
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='93838', job_status='RUN', time_executed='2021-09-08 19:30:47.756037', time_epoch_executed='1631154647.76' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93838

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93838/ft1_4FGL_J1359.4+0202_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93838/ft2_4FGL_J1359.4+0202_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93838/ft1_4FGL_J1359.4+0202_daily_bin1322.fits outfile=/scratch/kocevski/93838/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin1322.fits ra=209.859 dec=2.0424 rad=12.0 tmin=581990401.0 tmax=582249601.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 2.38
user 2.17
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93838/ft1_filtered_4FGL_J1359.4+0202_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/93838/ft2_4FGL_J1359.4+0202_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/93838/ltcube_581990401_582249601_4FGL_J1359.4+0202_daily_bin1322.fits outfile=/scratch/kocevski/93838/expmap_581990401_582249601_4FGL_J1359.4+0202_daily_bin1322.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/93838/ltcube_581990401_582249601_4FGL_J1359.4+0202_daily_bin1322.fits
.....................!
real 191.86
user 186.24
sys 5.08

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/93838/ft1_filtered_4FGL_J1359.4+0202_daily_bin1322.fits scfile=/scratch/kocevski/93838/ft2_4FGL_J1359.4+0202_daily_bin1322.fits outfile=/scratch/kocevski/93838/cmap_581990401_582249601_4FGL_J1359.4+0202_daily_bin1322.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/93838/ft1_filtered_4FGL_J1359.4+0202_daily_bin1322.fits scfile=/scratch/kocevski/93838/ft2_4FGL_J1359.4+0202_daily_bin1322.fits outfile=/scratch/kocevski/93838/cmap_HighResolution_581990401_582249601_4FGL_J1359.4+0202_daily_bin1322.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3969       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.772       1.0000         .10000E-03   10000.    
     5 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11107E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5433       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3267       1.0000         .10000E-03   10000.    
    10 'norm      '    23.345       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    27.721       1.0000         .10000E-03   10000.    
    13 'norm      '    7.8196       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5111       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82815       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=   6025.093     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2391 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.611        18.503        .69497E-06    .47770E-04
   2  Prefactor     3.3979        3.0671        .12749E-06   -.55564E-03
   3  norm          .10000E-03    .38388        .80432E-08** at limit **
   4  Prefactor     33.774        39.110       -.15924E-05   -.34274E-04
   5  norm          .10000E-03    28.554       -.30980E-07** at limit **
   6  Prefactor     1.0917        5.2084       -.25369E-07   -.86878E-04
   7  Prefactor     .11095E-03    40.217       -.35935E-05** at limit **
   8  Prefactor     6.5436        4.8889       -.34797E-07   -.34771E-05
   9  Prefactor     9.3207        13.738        .25954E-06    .23118E-03
  10  norm          23.345        5.6826        .27769E-07    .84257E-04
  11  Prefactor     .10000E-03    7.3297       -.82453E-08** at limit **
  12  norm          27.730        21.392       -.33343E-05   -.21036E-03
  13  norm          7.8204        13.095       -.20619E-06   -.85650E-05
  14  Prefactor     .10000E-03    6.0453       -.35243E-07** at limit **
  15  norm          .10000E-03    6.8179       -.63877E-07** at limit **
  16  Prefactor     .10000E-03    36.294       -.36775E-06** at limit **
  17  Prefactor     .10097E-03    40.065        .15156E-05** at limit **
  18  norm          .10000E-03    76.533       -.22860E-06** at limit **
  19  Normalizat    1.5108        .23558        .98014E-07    .25923E-03
  20  Prefactor     .82828        .15789        .45384E-06    .18467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6108
  Prefactor  = 3.39792
  norm       = 0.0001
  Prefactor  = 33.7743
  norm       = 0.0001
  Prefactor  = 1.09175
  Prefactor  = 0.000110953
  Prefactor  = 6.54358
  Prefactor  = 9.32071
  norm       = 23.3451
  Prefactor  = 0.0001
  norm       = 27.7304
  norm       = 7.82039
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100971
  norm       = 0.0001
  Normalizat = 1.51077
  Prefactor  = 0.828279
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.093     FROM HESSE     STATUS=OK           307 CALLS     2698 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.611        18.553        .11759E-03   -1.5026    
   2  Prefactor     3.3979        8.5612        .10976E-02   -1.5339    
   3  norm          .10000E-03    .39195        .46945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.774        39.134        .68955E-04   -1.4545    
   5  norm          .10000E-03    28.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0917        5.5221        .33156E-03   -1.5499    
   7  Prefactor     .11095E-03    44.727        .10895       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5436        4.8878        .14300E-03   -1.5196    
   9  Prefactor     9.3207        13.761        .13123E-03   -1.5097    
  10  norm          23.345        5.6842        .82903E-04   -1.4741    
  11  Prefactor     .10000E-03    7.3341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          27.730        21.464        .76090E-04   -1.4654    
  13  norm          7.8204        13.089        .14339E-03   -1.5149    
  14  Prefactor     .10000E-03    6.0480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.8209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10097E-03    38.490        .13914       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    77.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5108        .28572        .27089E-03   -.77476    
  20  Prefactor     .82828        .18957        .24311E-03   -.98694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62021e-09
Minuit parameter uncertainties:
  1  18.5621
  2  8.56431
  3  1.80621e-07
  4  39.1637
  5  2.78018e-06
  6  4.91119
  7  0.0442992
  8  4.88809
  9  13.7652
  10  5.68435
  11  8.78321e-07
  12  21.4698
  13  13.0938
  14  1.59092e-06
  15  2.40897e-06
  16  2.9497e-05
  17  0.0122316
  18  0.000258059
  19  0.286029
  20  0.189723
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  9.321e+00  1.377e+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:  8.283e-01  1.897e-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.511e+00  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.72
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/93838/likelihoodResults_581990401_582249601_4FGL_J1359.4+0202_daily_bin1322.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) = 6024.22289594
delta logL = 0.869777752141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6023.76040302
delta logL = 1.33227067497

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 'Index     '    8.0810       1.0000          .0000       10.000    
     3 'Normalizat'    1.3761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90072       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=   6023.760     FROM MIGRAD    STATUS=CONVERGED    177 CALLS      522 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27787E-02    .29143E-03** at limit **
   2  Index         8.0812        2.2177        .11344        .16446E-03
   3  Normalizat    1.3756        .65516E-01    .63585E-01    .42665E-04
   4  Prefactor     .90108        .44530E-01    .45014E-01   -.11365E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.08121
  Normalizat = 1.37565
  Prefactor  = 0.901079
 **********
 **   18 **HESSE 
 **********

 FCN=   6023.760     FROM HESSE     STATUS=OK            35 CALLS      557 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .78104E-03    .81304E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.0812        .27850        .46102E-02    .66396    
   3  Normalizat    1.3756        .28211        .28125E-03   -.81336    
   4  Prefactor     .90108        .19218        .23432E-03   -.96103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30857e-11
Minuit parameter uncertainties:
  1  2.61509e-09
  2  0.27873
  3  0.282432
  4  0.192325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93838': 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) = 6023.76039977
delta logL = 1.33227392513

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.615e-09  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  8.081e+00  2.787e-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.011e-01  1.923e-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.376e+00  2.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 209.859 2.042
Photon Index (Free Index): 8.08 +/- 0.28
Photon Flux (Free Index): 1.30e-07 +/- 8.57e-08
Energy Flux (Free Index): 1.51e-05 +/- 9.89e-06

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/93838/cmap_HighResolution_581990401_582249601_4FGL_J1359.4+0202_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='1.33e+00', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-08 19:40:33.749757', photon_index_error2='0.28', photon_index2='8.08', ts='0.72', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='9.89e-06', EG='1.51', time_epoch_completed='1631155233.75', return_code='0', job_id='93838', GAL2='0.90', EG2='1.38', return_code2='0', photon_flux_error2='8.57e-08', ts2='3.63', photon_index='2.39' WHERE bin_id='1322' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:40:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 93838: <4FGL_J1359.4+0202_daily_bin1322> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin1322> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:30:34 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:30:36 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:30:36 2021
Terminated at Wed Sep  8 19:40:34 2021
Results reported at Wed Sep  8 19:40:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin1322 209.859 2.0424 581990401 582249601 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            600 sec.

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

