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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin494
RA = 209.859, Dec = 2.0424
tmin = 367372801, tmax = 367632001
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='89663', job_status='RUN', time_executed='2021-09-08 19:19:11.144645', time_epoch_executed='1631153951.14' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89663/ft1_4FGL_J1359.4+0202_daily_bin494.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89663/ft2_4FGL_J1359.4+0202_daily_bin494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89663/ft1_4FGL_J1359.4+0202_daily_bin494.fits outfile=/scratch/kocevski/89663/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin494.fits ra=209.859 dec=2.0424 rad=12.0 tmin=367372801.0 tmax=367632001.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.40
user 3.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89663/ft2_4FGL_J1359.4+0202_daily_bin494.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/89663/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin494.fits evtable="EVENTS" outfile="/scratch/kocevski/89663/ft1_filtered_4FGL_J1359.4+0202_daily_bin494.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89663/ft1_filtered_4FGL_J1359.4+0202_daily_bin494.fits evtable="EVENTS" scfile=/scratch/kocevski/89663/ft2_4FGL_J1359.4+0202_daily_bin494.fits sctable="SC_DATA" expcube=/scratch/kocevski/89663/ltcube_367372801_367632001_4FGL_J1359.4+0202_daily_bin494.fits outfile=/scratch/kocevski/89663/expmap_367372801_367632001_4FGL_J1359.4+0202_daily_bin494.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/89663/ltcube_367372801_367632001_4FGL_J1359.4+0202_daily_bin494.fits
.....................!
real 190.35
user 185.24
sys 4.75

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/89663/ft1_filtered_4FGL_J1359.4+0202_daily_bin494.fits scfile=/scratch/kocevski/89663/ft2_4FGL_J1359.4+0202_daily_bin494.fits outfile=/scratch/kocevski/89663/cmap_367372801_367632001_4FGL_J1359.4+0202_daily_bin494.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89663/ft1_filtered_4FGL_J1359.4+0202_daily_bin494.fits scfile=/scratch/kocevski/89663/ft2_4FGL_J1359.4+0202_daily_bin494.fits outfile=/scratch/kocevski/89663/cmap_HighResolution_367372801_367632001_4FGL_J1359.4+0202_daily_bin494.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.58
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.180       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .67097       1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.850       1.0000         .10000E-03   10000.    
     5 'norm      '    18.844       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .93170       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4216       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.660       1.0000         .10000E-03   10000.    
    10 'norm      '    .27387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3153       1.0000         .10000E-03   10000.    
    12 'norm      '    14.247       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5545       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.996       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    77.648       1.0000         .10000E-03   10000.    
    18 'norm      '    .27677E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5835       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .67786       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=   6625.103     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2390 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.165        22.659       -.26181E-05   -.60461E-04
   2  Prefactor     .10000E-03    13.518        .92525E-07** at limit **
   3  norm          .67149        1.2238        .37767E-06    .19641E-03
   4  Prefactor     45.781        59.832        .62298E-05    .10073E-04
   5  norm          18.837        21.983       -.27375E-05   -.30392E-04
   6  Prefactor     .93166        3.8663        .13673E-05   -.20545E-04
   7  Prefactor     .10000E-03    8.6615        .54391E-07** at limit **
   8  Prefactor     6.4233        5.6399       -.10869E-06   -.45984E-04
   9  Prefactor     27.665        18.142        .59120E-06   -.20553E-04
  10  norm          .27298        1.4288        .99900E-06    .21928E-03
  11  Prefactor     7.2979        22.329       -.47294E-05   -.24946E-04
  12  norm          14.247        11.902       -.28949E-05   -.78623E-04
  13  norm          3.5563        7.6846       -.29062E-05   -.99057E-04
  14  Prefactor     .10000E-03    10.556        .88541E-07** at limit **
  15  norm          18.997        17.574        .17431E-05    .27860E-04
  16  Prefactor     .10000E-03    42.700        .28459E-06** at limit **
  17  Prefactor     77.654        38.954       -.12817E-05    .24961E-03
  18  norm          .10712E-03    28.596        .10854E-05** at limit **
  19  Normalizat    1.5834        .22042       -.91902E-06   -.15579E-03
  20  Prefactor     .67796        .14519       -.93084E-06   -.13621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1649
  Prefactor  = 0.0001
  norm       = 0.671491
  Prefactor  = 45.7808
  norm       = 18.837
  Prefactor  = 0.931658
  Prefactor  = 0.0001
  Prefactor  = 6.42328
  Prefactor  = 27.6646
  norm       = 0.272977
  Prefactor  = 7.29789
  norm       = 14.247
  norm       = 3.55634
  Prefactor  = 0.0001
  norm       = 18.9969
  Prefactor  = 0.0001
  Prefactor  = 77.6537
  norm       = 0.000107122
  Normalizat = 1.58342
  Prefactor  = 0.677959
 **********
 **   18 **HESSE 
 **********

 FCN=   6625.103     FROM HESSE     STATUS=OK           305 CALLS     2695 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.165        22.655        .72932E-04   -1.4609    
   2  Prefactor     .10000E-03    13.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .67149        1.1962        .11602E-03   -1.5544    
   4  Prefactor     45.781        59.779        .59212E-04   -1.4354    
   5  norm          18.837        21.973        .92266E-04   -1.4840    
   6  Prefactor     .93166        3.8992        .30207E-03   -1.5515    
   7  Prefactor     .10000E-03    8.6753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4233        5.6370        .15838E-03   -1.5201    
   9  Prefactor     27.665        18.162        .76174E-04   -1.4656    
  10  norm          .27298        1.3671        .18821E-03   -1.5603    
  11  Prefactor     7.2979        22.231        .14829E-03   -1.5168    
  12  norm          14.247        11.885        .53058E-03   -1.4953    
  13  norm          3.5563        7.6640        .21438E-03   -1.5331    
  14  Prefactor     .10000E-03    10.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.997        17.574        .91896E-04   -1.4836    
  16  Prefactor     .10000E-03    42.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     77.654        54.361        .22786E-03   -1.3943    
  18  norm          .10712E-03    45.360        .10651       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5834        .26533        .25792E-03   -.75461    
  20  Prefactor     .67796        .17380        .25028E-03   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97615e-10
Minuit parameter uncertainties:
  1  22.6616
  2  1.5304e-05
  3  1.19627
  4  59.8573
  5  21.9826
  6  3.81215
  7  9.9258e-06
  8  5.63742
  9  18.166
  10  1.22159
  11  22.2561
  12  11.8865
  13  7.6661
  14  6.82637e-06
  15  17.5792
  16  4.14098e-05
  17  54.3956
  18  0.0359737
  19  0.265565
  20  0.173937
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.766e+01  1.817e+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:  6.780e-01  1.739e-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.583e+00  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.85
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 8.79e-08 +/- 5.77e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 1.93e-05

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

Saving results to:
/scratch/kocevski/89663/likelihoodResults_367372801_367632001_4FGL_J1359.4+0202_daily_bin494.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) = 6624.52405188
delta logL = 0.579012391922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6624.52103709
delta logL = 0.582027182555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.863       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9152       1.0000          .0000       10.000    
     3 'Normalizat'    1.5327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69959       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=   6624.521     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      298 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.870        17.437        .10389E-03   -.49835E-03
   2  Index         2.9152        .60635        .40077E-02   -.10993E-03
   3  Normalizat    1.5324        .26572        .26122E-03   -.48857E-04
   4  Prefactor     .69981        .17406        .24660E-03    .17657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8703
  Index      = 2.91522
  Normalizat = 1.53238
  Prefactor  = 0.699807
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.521     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.870        15.056        .41556E-05   -1.4937    
   2  Index         2.9152        .52323        .16031E-03   -.43009    
   3  Normalizat    1.5324        .26563        .52245E-04   -.76873    
   4  Prefactor     .69981        .17394        .98639E-05   -1.0353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14066e-10
Minuit parameter uncertainties:
  1  15.0597
  2  0.524393
  3  0.265873
  4  0.174076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89663': 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) = 6624.52103576
delta logL = 0.582028511263

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.487e+01  1.506e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.915e+00  5.244e-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:  6.998e-01  1.741e-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.532e+00  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 209.859 2.042
Photon Index (Free Index): 2.92 +/- 0.52
Photon Flux (Free Index): 1.32e-07 +/- 7.70e-08
Energy Flux (Free Index): 2.76e-05 +/- 1.52e-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/89663/cmap_HighResolution_367372801_367632001_4FGL_J1359.4+0202_daily_bin494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', comment='SUCCESS', photon_flux='8.79e-08', energy_flux2='2.76e-05', photon_flux_error='5.77e-08', dlogl='5.82e-01', energy_flux='2.94e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-08 19:29:06.460591', photon_index_error2='0.52', photon_index2='2.92', ts='3.85', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.97e-07', energy_flux_error2='1.52e-05', EG='1.58', time_epoch_completed='1631154546.46', return_code='0', job_id='89663', GAL2='0.70', EG2='1.53', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='7.70e-08', ts2='5.06', photon_index='2.39' WHERE bin_id='494' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:29:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 89663: <4FGL_J1359.4+0202_daily_bin494> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin494> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 19:15:32 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:15:34 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:15:34 2021
Terminated at Wed Sep  8 19:29:07 2021
Results reported at Wed Sep  8 19:29:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin494 209.859 2.0424 367372801 367632001 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 :                                   591.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

