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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin668
RA = 209.859, Dec = 2.0424
tmin = 412473601, tmax = 412732801
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='91115', job_status='RUN', time_executed='2021-09-08 19:23:15.550960', time_epoch_executed='1631154195.55' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91115

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91115/ft1_4FGL_J1359.4+0202_daily_bin668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91115/ft2_4FGL_J1359.4+0202_daily_bin668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91115/ft1_4FGL_J1359.4+0202_daily_bin668.fits outfile=/scratch/kocevski/91115/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin668.fits ra=209.859 dec=2.0424 rad=12.0 tmin=412473601.0 tmax=412732801.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 3.44
user 3.21
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/91115/ft2_4FGL_J1359.4+0202_daily_bin668.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/91115/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin668.fits evtable="EVENTS" outfile="/scratch/kocevski/91115/ft1_filtered_4FGL_J1359.4+0202_daily_bin668.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.63
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91115/ft1_filtered_4FGL_J1359.4+0202_daily_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/91115/ft2_4FGL_J1359.4+0202_daily_bin668.fits sctable="SC_DATA" expcube=/scratch/kocevski/91115/ltcube_412473601_412732801_4FGL_J1359.4+0202_daily_bin668.fits outfile=/scratch/kocevski/91115/expmap_412473601_412732801_4FGL_J1359.4+0202_daily_bin668.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/91115/ltcube_412473601_412732801_4FGL_J1359.4+0202_daily_bin668.fits
.....................!
real 193.26
user 187.71
sys 4.84

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/91115/ft1_filtered_4FGL_J1359.4+0202_daily_bin668.fits scfile=/scratch/kocevski/91115/ft2_4FGL_J1359.4+0202_daily_bin668.fits outfile=/scratch/kocevski/91115/cmap_412473601_412732801_4FGL_J1359.4+0202_daily_bin668.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91115/ft1_filtered_4FGL_J1359.4+0202_daily_bin668.fits scfile=/scratch/kocevski/91115/ft2_4FGL_J1359.4+0202_daily_bin668.fits outfile=/scratch/kocevski/91115/cmap_HighResolution_412473601_412732801_4FGL_J1359.4+0202_daily_bin668.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.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/91115/ft1_filtered_4FGL_J1359.4+0202_daily_bin668.fits', '/scratch/kocevski/91115/ft2_4FGL_J1359.4+0202_daily_bin668.fits', expMap='/scratch/kocevski/91115/expmap_412473601_412732801_4FGL_J1359.4+0202_daily_bin668.fits', expCube='/scratch/kocevski/91115/ltcube_412473601_412732801_4FGL_J1359.4+0202_daily_bin668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/91115/Model_4FGL_J1359.4+0202_daily_bin668.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/91115/ft1_filtered_4FGL_J1359.4+0202_daily_bin668.fits
Spacecraft file(s): /scratch/kocevski/91115/ft2_4FGL_J1359.4+0202_daily_bin668.fits
Exposure map: /scratch/kocevski/91115/expmap_412473601_412732801_4FGL_J1359.4+0202_daily_bin668.fits
Exposure cube: /scratch/kocevski/91115/ltcube_412473601_412732801_4FGL_J1359.4+0202_daily_bin668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/91115/Model_4FGL_J1359.4+0202_daily_bin668.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 712.696003756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 710.664832955

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21431E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.606       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3895       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.901       1.0000         .10000E-03   10000.    
     5 'norm      '    .62192E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6468       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18988       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10786E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.525       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9482       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15459E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .84705E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    7.0708       1.0000         .10000E-03   10000.    
    14 'Prefactor '    116.41       1.0000         .10000E-03   10000.    
    15 'norm      '    .39845E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .84035E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0657       1.0000         .10000E-03   10000.    
    18 'norm      '    25.534       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .40183       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86716       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   710.6587     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      380 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.135        .14276E-04** at limit **
   2  Prefactor     42.636        39.011       -.17434E-04    .15564E-02
   3  norm          2.3895        1.0238         .0000         .0000    
   4  Prefactor     45.126        111.49       -.16104E-03    .75608E-03
   5  norm          .10014E-03    287.44        .69600E-04** at limit **
   6  Prefactor     9.6644        14.129       -.11473E-04   -.19223E-04
   7  Prefactor     .10000E-03    177.74       -.27961E-04** at limit **
   8  Prefactor     .10000E-03    17.674       -.50069E-05** at limit **
   9  Prefactor     38.742        17.522        .26321E-04    .74336E-02
  10  norm          1.9482        1.0374         .0000         .0000    
  11  Prefactor     .10000E-03    52.776        .12120E-04** at limit **
  12  norm          .10000E-03    121.76       -.27187E-04** at limit **
  13  norm          7.0708        1.0025         .0000         .0000    
  14  Prefactor     117.26        30.648       -.28039E-04    .21923E-02
  15  norm          .10000E-03    45.848       -.36579E-05** at limit **
  16  Prefactor     .10000E-03    163.79       -.47978E-05** at limit **
  17  Prefactor     .10197E-03    771.21       -.10551E-03** at limit **
  18  norm          28.981        63.528       -.50779E-04   -.34511E-03
  19  Normalizat    .40244        .64562       -.46980E-04    .50766E-06
  20  Prefactor     .86497        .48756        .86179E-04    .83373E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 42.6355
  norm       = 2.38948
  Prefactor  = 45.1256
  norm       = 0.000100142
  Prefactor  = 9.66443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.7416
  norm       = 1.94819
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 7.0708
  Prefactor  = 117.261
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000101967
  norm       = 28.9806
  Normalizat = 0.40244
  Prefactor  = 0.86497
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   710.6587     FROM HESSE     STATUS=FAILED        17 CALLS      397 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.259        .91297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.636        37.954        .15354E-02   -1.4401    
   3  norm          562.91        560.41         .0000       -1.5399    
   4  Prefactor     45.126        1.0256       -.16104E-03   -1.4363    
   5  norm          .10014E-03    .21759        .69600E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.6644        1.0023       -.11473E-04   -1.5086    
   7  Prefactor     .10000E-03    .24658       -.27961E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .20571       -.50069E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.742        1.0029        .26321E-04   -1.4462    
  10  norm          1.9482        1.0374         .0000       -1.5429    
  11  Prefactor     .10000E-03    .26130        .12120E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .22269       -.27187E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0708        1.0025         .0000       -1.5176    
  14  Prefactor     117.26        1.0036       -.28039E-04   -1.3538    
  15  norm          .10000E-03    .23764       -.36579E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .22254       -.47978E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10197E-03    .35587E-01   -.10551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          28.981        1.0654       -.50779E-04   -1.4631    
  19  Normalizat    .40244        .72264       -.46980E-04   -1.1718    
  20  Prefactor     .86497        1.2122        .86179E-04   -.97376    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.00474e-10
Minuit parameter uncertainties:
  1  3.22127e-05
  2  37.9753
  3  1.02377
  4  1.02556
  5  0.000351626
  6  1.00226
  7  1.85171e-05
  8  2.07892e-07
  9  1.00287
  10  1.03745
  11  6.38561e-07
  12  2.66017e-05
  13  1.00252
  14  1.0036
  15  4.85678e-07
  16  4.6661e-05
  17  0.000529126
  18  1.06537
  19  0.740475
  20  1.25327
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 710.658713891

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  3.874e+01  1.003e+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

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.650e-01  1.253e+00  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:  4.024e-01  7.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/91115/likelihoodResults_412473601_412732801_4FGL_J1359.4+0202_daily_bin668.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): 0
logL (Free Index) = 710.658700117
delta logL = 1.37737821433e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 710.658699891
delta logL = 1.40002841817e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.742       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3797       1.0000          .0000       10.000    
     3 'Normalizat'    .40247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86509       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=   710.6587     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      175 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.979        92.003        .16070E-04    .37780E-04
   2  Index         2.3777        1.2360        .10644E-03    .18163E-04
   3  Normalizat    .40251        .56954        .20591E-04   -.80627E-04
   4  Prefactor     .86498        .41765       -.17150E-04    .45563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.9794
  Index      = 2.3777
  Normalizat = 0.402506
  Prefactor  = 0.864978
 **********
 **   18 **HESSE 
 **********

 FCN=   710.6587     FROM HESSE     STATUS=OK            29 CALLS      204 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.979        92.463        .32197E-03   -1.4458    
   2  Index         2.3777        1.2435        .62669E-03   -.55208    
   3  Normalizat    .40251        .63692        .38510E-03   -1.1717    
   4  Prefactor     .86498        .46800        .19064E-03   -.97376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.161e-09
Minuit parameter uncertainties:
  1  92.8053
  2  1.26191
  3  0.648944
  4  0.470191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91115': 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) = 710.658696554
delta logL = 1.73367441221e-05

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  3.898e+01  9.281e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.378e+00  1.262e+00  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:  8.650e-01  4.702e-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:  4.025e-01  6.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
Ra Dec: 209.859 2.042

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/91115/cmap_HighResolution_412473601_412732801_4FGL_J1359.4+0202_daily_bin668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-02', job_status='DONE', photon_flux_upper_limit='8.52e-07', time_completed='2021-09-08 19:28:55.703283', job_id='91115', GAL2='0.86', fit_tolerance='1e-08', EG2='0.40', EG='0.40', time_epoch_completed='1631154535.7', return_code2='0', ts='0.35', comment='SUCCESS', return_code='101', GAL='0.86', dlogl='1.73e-05', ts2='0.35', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='668' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:28:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 91115: <4FGL_J1359.4+0202_daily_bin668> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin668> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 19:20:30 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:20:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 19:20:32 2021
Terminated at Wed Sep  8 19:28:56 2021
Results reported at Wed Sep  8 19:28:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin668 209.859 2.0424 412473601 412732801 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 :                                   323.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             318.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   503 sec.
    Turnaround time :                            506 sec.

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

