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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin187
RA = 209.859, Dec = 2.0424
tmin = 287798401, tmax = 288057601
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='88126', job_status='RUN', time_executed='2021-09-08 19:10:38.836613', time_epoch_executed='1631153438.84' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88126

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88126/ft1_4FGL_J1359.4+0202_daily_bin187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88126/ft2_4FGL_J1359.4+0202_daily_bin187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88126/ft1_4FGL_J1359.4+0202_daily_bin187.fits outfile=/scratch/kocevski/88126/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin187.fits ra=209.859 dec=2.0424 rad=12.0 tmin=287798401.0 tmax=288057601.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.58
user 3.33
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88126/ft1_filtered_4FGL_J1359.4+0202_daily_bin187.fits evtable="EVENTS" scfile=/scratch/kocevski/88126/ft2_4FGL_J1359.4+0202_daily_bin187.fits sctable="SC_DATA" expcube=/scratch/kocevski/88126/ltcube_287798401_288057601_4FGL_J1359.4+0202_daily_bin187.fits outfile=/scratch/kocevski/88126/expmap_287798401_288057601_4FGL_J1359.4+0202_daily_bin187.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/88126/ltcube_287798401_288057601_4FGL_J1359.4+0202_daily_bin187.fits
.....................!
real 191.40
user 185.25
sys 5.71

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/88126/ft1_filtered_4FGL_J1359.4+0202_daily_bin187.fits scfile=/scratch/kocevski/88126/ft2_4FGL_J1359.4+0202_daily_bin187.fits outfile=/scratch/kocevski/88126/cmap_287798401_288057601_4FGL_J1359.4+0202_daily_bin187.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88126/ft1_filtered_4FGL_J1359.4+0202_daily_bin187.fits scfile=/scratch/kocevski/88126/ft2_4FGL_J1359.4+0202_daily_bin187.fits outfile=/scratch/kocevski/88126/cmap_HighResolution_287798401_288057601_4FGL_J1359.4+0202_daily_bin187.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/88126/ft1_filtered_4FGL_J1359.4+0202_daily_bin187.fits evtable="EVENTS" scfile=/scratch/kocevski/88126/ft2_4FGL_J1359.4+0202_daily_bin187.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88126/Model_4FGL_J1359.4+0202_daily_bin187.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/88126/ft1_filtered_4FGL_J1359.4+0202_daily_bin187.fits.....................!
real 56.39
user 55.00
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8884       1.0000         .10000E-03   10000.    
     3 'norm      '    16.535       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7695       1.0000         .10000E-03   10000.    
    10 'norm      '    5.0467       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.823       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9458       1.0000         .10000E-03   10000.    
    13 'norm      '    .24985E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.8286       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1702       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90783       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=   7612.261     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2071 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.043       -.11451E-07** at limit **
   2  Prefactor     3.8884        6.4544        .10378E-05    .25927E-03
   3  norm          16.535        2.4679        .36587E-08   -.27453E-04
   4  Prefactor     .10000E-03    77.089        .86163E-06** at limit **
   5  norm          .10000E-03    11.465        .56177E-07** at limit **
   6  Prefactor     .10000E-03    2.1030        .39598E-07** at limit **
   7  Prefactor     .10000E-03    6.3166       -.17745E-07** at limit **
   8  Prefactor     .10000E-03    2.5021        .69192E-07** at limit **
   9  Prefactor     7.7699        12.349        .31336E-06    .15993E-04
  10  norm          5.0488        2.4357        .71621E-06   -.76704E-03
  11  Prefactor     18.828        16.828        .50760E-07    .96066E-05
  12  norm          4.9462        5.4897       -.12908E-07    .34186E-04
  13  norm          .10000E-03    5.5876       -.74810E-06** at limit **
  14  Prefactor     .10000E-03    26.655       -.27714E-07** at limit **
  15  norm          .10000E-03    7.4444       -.16934E-07** at limit **
  16  Prefactor     27.146        63.000        .92191E-06    .15692E-04
  17  Prefactor     .10000E-03    61.489       -.33905E-05** at limit **
  18  norm          5.8387        13.764       -.19828E-05   -.18707E-03
  19  Normalizat    1.1702        .19515       -.43650E-06    .93901E-04
  20  Prefactor     .90784        .13247        .79566E-07    .86486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.88842
  norm       = 16.5346
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.76992
  norm       = 5.0488
  Prefactor  = 18.8278
  norm       = 4.94621
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.1463
  Prefactor  = 0.000100001
  norm       = 5.83872
  Normalizat = 1.17015
  Prefactor  = 0.907838
 **********
 **   18 **HESSE 
 **********

 FCN=   7612.261     FROM HESSE     STATUS=OK           293 CALLS     2364 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8884        6.5723        .20462E-03   -1.5314    
   3  norm          16.535        2.4745        .50648E-04   -1.4894    
   4  Prefactor     .10000E-03    77.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1252        .12348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5616        .13475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7699        12.335        .14386E-03   -1.5150    
  10  norm          5.0488        2.5476        .47333E-03   -1.5259    
  11  Prefactor     18.828        16.822        .92317E-04   -1.4840    
  12  norm          4.9462        5.4924        .18084E-03   -1.5263    
  13  norm          .10000E-03    23.650        .39199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.4486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.146        63.064        .77208E-04   -1.4665    
  17  Prefactor     .10000E-03    60.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.8387        14.318        .16635E-03   -1.5225    
  19  Normalizat    1.1702        .23538        .28701E-03   -.87530    
  20  Prefactor     .90784        .15982        .22117E-03   -.95868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18066e-10
Minuit parameter uncertainties:
  1  1.9617e-06
  2  6.57347
  3  2.47456
  4  0.000220205
  5  5.80626e-06
  6  1.75421e-08
  7  3.45693e-06
  8  2.27387e-06
  9  12.3389
  10  2.54768
  11  16.8266
  12  5.49293
  13  2.818e-06
  14  6.6355e-06
  15  6.4157e-07
  16  63.2191
  17  0.000470065
  18  14.3269
  19  0.235596
  20  0.159905
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  7.770e+00  1.234e+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:  9.078e-01  1.599e-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.170e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88126/likelihoodResults_287798401_288057601_4FGL_J1359.4+0202_daily_bin187.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) = 7612.24998095
delta logL = 0.0113768458014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7612.2458712
delta logL = 0.0154865904578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6174       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5422       1.0000          .0000       10.000    
     3 'Normalizat'    1.1657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90976       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=   7612.246     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      220 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6114        344.67        .38999E-02    .19037E-03
   2  Index         2.5422        6.2646        .17299        .12820E-03
   3  Normalizat    1.1657        .57726E-01    .64989E-01    .58920E-04
   4  Prefactor     .90976        .37832E-01    .45129E-01   -.11429E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.61139
  Index      = 2.5422
  Normalizat = 1.16569
  Prefactor  = 0.909756
 **********
 **   18 **HESSE 
 **********

 FCN=   7612.246     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6114        14.328        .15600E-03   -1.5194    
   2  Index         2.5422        1.0204        .97330E-02   -.51388    
   3  Normalizat    1.1657        .23291        .28749E-03   -.87670    
   4  Prefactor     .90976        .15966        .22096E-03   -.95801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37098e-10
Minuit parameter uncertainties:
  1  14.3357
  2  1.03
  3  0.233116
  4  0.159742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88126': 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) = 7612.24587103
delta logL = 0.0154867648343

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  6.611e+00  1.434e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.542e+00  1.030e+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:  9.098e-01  1.597e-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.166e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/88126/cmap_HighResolution_287798401_288057601_4FGL_J1359.4+0202_daily_bin187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.45e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-08 19:20:54.863844', job_id='88126', GAL2='0.91', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631154054.86', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.55e-02', ts2='0.53', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='187' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:20:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 88126: <4FGL_J1359.4+0202_daily_bin187> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin187 209.859 2.0424 287798401 288057601 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 :                                   612.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            634 sec.

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

