/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 194 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1359.4+0202_daily_bin249
RA = 209.859, Dec = 2.0424
tmin = 303868801, tmax = 304128001
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='88227', job_status='RUN', time_executed='2021-09-08 19:13:52.621368', time_epoch_executed='1631153632.62' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88227

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88227/ft1_4FGL_J1359.4+0202_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88227/ft2_4FGL_J1359.4+0202_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88227/ft1_4FGL_J1359.4+0202_daily_bin249.fits outfile=/scratch/kocevski/88227/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin249.fits ra=209.859 dec=2.0424 rad=12.0 tmin=303868801.0 tmax=304128001.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.53
user 2.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88227/ft1_filtered_4FGL_J1359.4+0202_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/88227/ft2_4FGL_J1359.4+0202_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/88227/ltcube_303868801_304128001_4FGL_J1359.4+0202_daily_bin249.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/88227/ft2_4FGL_J1359.4+0202_daily_bin249.fits
.....................!
real 8.63
user 8.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88227/ft1_filtered_4FGL_J1359.4+0202_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/88227/ft2_4FGL_J1359.4+0202_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/88227/ltcube_303868801_304128001_4FGL_J1359.4+0202_daily_bin249.fits outfile=/scratch/kocevski/88227/expmap_303868801_304128001_4FGL_J1359.4+0202_daily_bin249.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/88227/ltcube_303868801_304128001_4FGL_J1359.4+0202_daily_bin249.fits
.....................!
real 140.74
user 136.37
sys 4.15

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/88227/ft1_filtered_4FGL_J1359.4+0202_daily_bin249.fits scfile=/scratch/kocevski/88227/ft2_4FGL_J1359.4+0202_daily_bin249.fits outfile=/scratch/kocevski/88227/cmap_303868801_304128001_4FGL_J1359.4+0202_daily_bin249.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.43
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88227/ft1_filtered_4FGL_J1359.4+0202_daily_bin249.fits scfile=/scratch/kocevski/88227/ft2_4FGL_J1359.4+0202_daily_bin249.fits outfile=/scratch/kocevski/88227/cmap_HighResolution_303868801_304128001_4FGL_J1359.4+0202_daily_bin249.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.44
user 0.30
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.6606       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2134       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.118       1.0000         .10000E-03   10000.    
    10 'norm      '    9.5558       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11478E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3625       1.0000         .10000E-03   10000.    
    13 'norm      '    13.499       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.170       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.359       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1957       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0523       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=   6159.074     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1954 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.421        .36517E-05** at limit **
   2  Prefactor     .10000E-03    3.0415        .61891E-07** at limit **
   3  norm          4.6607        1.9830       -.21593E-07   -.19139E-03
   4  Prefactor     .10000E-03    10.781        .35068E-05** at limit **
   5  norm          .10000E-03    10.122        .28356E-05** at limit **
   6  Prefactor     5.2132        3.5454       -.11844E-05   -.20194E-04
   7  Prefactor     .10000E-03    19.855        .83878E-05** at limit **
   8  Prefactor     .10000E-03    1.8646       -.15435E-07** at limit **
   9  Prefactor     25.112        15.250       -.86958E-06   -.32013E-04
  10  norm          9.5556        4.3163        .16439E-05   -.18795E-03
  11  Prefactor     .10000E-03    34.213       -.56146E-05** at limit **
  12  norm          5.3625        8.0672       -.84870E-07   -.44207E-04
  13  norm          13.499        11.683        .85955E-07   -.26351E-04
  14  Prefactor     .10000E-03    13.451       -.98496E-05** at limit **
  15  norm          .10000E-03    9.6677       -.35404E-06** at limit **
  16  Prefactor     17.164        62.090       -.12837E-04    .24435E-05
  17  Prefactor     22.362        22.365        .26984E-05    .33247E-04
  18  norm          .10000E-03    9.3553       -.39923E-05** at limit **
  19  Normalizat    1.1958        .22529        .17316E-06    .57976E-05
  20  Prefactor     1.0522        .15740        .17215E-07    .43314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.66067
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.21322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.1116
  norm       = 9.55561
  Prefactor  = 0.0001
  norm       = 5.36246
  norm       = 13.4991
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1638
  Prefactor  = 22.3617
  norm       = 0.0001
  Normalizat = 1.19585
  Prefactor  = 1.05224
 **********
 **   18 **HESSE 
 **********

 FCN=   6159.074     FROM HESSE     STATUS=OK           291 CALLS     2245 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0431        .13367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.6607        1.9836        .69218E-04   -1.5276    
   4  Prefactor     .10000E-03    10.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2132        3.5508        .11771E-03   -1.5251    
   7  Prefactor     .10000E-03    19.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8773        .10465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.112        15.282        .79928E-04   -1.4705    
  10  norm          9.5556        4.2983        .10161E-03   -1.5090    
  11  Prefactor     .10000E-03    34.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3625        8.0658        .17354E-03   -1.5245    
  13  norm          13.499        11.679        .10902E-03   -1.4973    
  14  Prefactor     .10000E-03    13.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.6738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.164        62.146        .96658E-04   -1.4879    
  17  Prefactor     22.362        22.390        .84710E-04   -1.4762    
  18  norm          .10000E-03    9.3815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1958        .26834        .29554E-03   -.86731    
  20  Prefactor     1.0522        .18748        .22006E-03   -.91008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47552e-11
Minuit parameter uncertainties:
  1  2.61271e-06
  2  5.4646e-07
  3  1.98367
  4  7.6481e-07
  5  3.30456e-07
  6  3.55097
  7  1.05502e-05
  8  9.21306e-07
  9  15.2841
  10  4.29844
  11  9.68333e-05
  12  8.06746
  13  11.6806
  14  1.60314e-05
  15  4.83298e-06
  16  62.3814
  17  22.3987
  18  9.47777e-06
  19  0.268646
  20  0.187594
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.511e+01  1.528e+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:  1.052e+00  1.876e-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.196e+00  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.94
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 7.98e-08 +/- 4.85e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.62e-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) = 6158.95319352
delta logL = 0.120907495552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6158.94661609
delta logL = 0.127484928155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.422       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0944       1.0000          .0000       10.000    
     3 'Normalizat'    1.2219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0410       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=   6158.947     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      310 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.425        21.975        .71480E-04    .24334E-04
   2  Index         2.0943        .56839        .77236E-02    .29224E-03
   3  Normalizat    1.2218        .26837        .29285E-03   -.17547E-04
   4  Prefactor     1.0410        .18700        .22109E-03   -.28848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4252
  Index      = 2.09435
  Normalizat = 1.22184
  Prefactor  = 1.04105
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.947     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.425        21.589        .28592E-05   -1.4586    
   2  Index         2.0943        .55790        .15447E-02   -.62012    
   3  Normalizat    1.2218        .26841        .11714E-04   -.85930    
   4  Prefactor     1.0410        .18714        .88434E-05   -.91373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22134e-12
Minuit parameter uncertainties:
  1  21.5942
  2  0.559661
  3  0.268712
  4  0.187252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88227': 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) = 6158.94661605
delta logL = 0.127484964547

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  3.143e+01  2.159e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.094e+00  5.597e-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:  1.041e+00  1.873e-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.222e+00  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.17
Ra Dec: 209.859 2.042
Photon Index (Free Index): 2.09 +/- 0.56
Photon Flux (Free Index): 6.01e-08 +/- 5.49e-08
Energy Flux (Free Index): 3.34e-05 +/- 2.83e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/88227/cmap_HighResolution_303868801_304128001_4FGL_J1359.4+0202_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.98e-08', energy_flux2='3.34e-05', photon_flux_error='4.85e-08', dlogl='1.27e-01', energy_flux='2.67e-05', photon_flux2='6.01e-08', job_status='DONE', time_completed='2021-09-08 19:20:16.394937', photon_index_error2='0.56', photon_index2='2.09', ts='4.94', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='1.20', time_epoch_completed='1631154016.39', return_code='0', job_id='88227', GAL2='1.04', EG2='1.22', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='5.49e-08', ts2='5.17', photon_index='2.39' WHERE bin_id='249' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:20:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 88227: <4FGL_J1359.4+0202_daily_bin249> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin249 209.859 2.0424 303868801 304128001 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 :                                   380.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            586 sec.

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

