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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin783
RA = 209.859, Dec = 2.0424
tmin = 442281601, tmax = 442540801
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='91283', job_status='RUN', time_executed='2021-09-08 19:23:17.158515', time_epoch_executed='1631154197.16' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91283

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91283/ft1_4FGL_J1359.4+0202_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91283/ft2_4FGL_J1359.4+0202_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91283/ft1_4FGL_J1359.4+0202_daily_bin783.fits outfile=/scratch/kocevski/91283/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin783.fits ra=209.859 dec=2.0424 rad=12.0 tmin=442281601.0 tmax=442540801.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.43
user 3.21
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91283/ft1_filtered_4FGL_J1359.4+0202_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/91283/ft2_4FGL_J1359.4+0202_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/91283/ltcube_442281601_442540801_4FGL_J1359.4+0202_daily_bin783.fits outfile=/scratch/kocevski/91283/expmap_442281601_442540801_4FGL_J1359.4+0202_daily_bin783.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/91283/ltcube_442281601_442540801_4FGL_J1359.4+0202_daily_bin783.fits
.....................!
real 189.78
user 185.48
sys 3.98

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/91283/ft1_filtered_4FGL_J1359.4+0202_daily_bin783.fits scfile=/scratch/kocevski/91283/ft2_4FGL_J1359.4+0202_daily_bin783.fits outfile=/scratch/kocevski/91283/cmap_442281601_442540801_4FGL_J1359.4+0202_daily_bin783.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=209.859 yref=2.0424 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91283/ft1_filtered_4FGL_J1359.4+0202_daily_bin783.fits scfile=/scratch/kocevski/91283/ft2_4FGL_J1359.4+0202_daily_bin783.fits outfile=/scratch/kocevski/91283/cmap_HighResolution_442281601_442540801_4FGL_J1359.4+0202_daily_bin783.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4618       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5874       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1609       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8263       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5760       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8842       1.0000         .10000E-03   10000.    
    10 'norm      '    7.8029       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.709       1.0000         .10000E-03   10000.    
    12 'norm      '    14.060       1.0000         .10000E-03   10000.    
    13 'norm      '    13.607       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.211       1.0000         .10000E-03   10000.    
    15 'norm      '    16.141       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1495       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.190       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .90602       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99782       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=   5922.268     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     2339 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1868       -.11530E-06** at limit **
   2  Prefactor     5.4632        11.589       -.62916E-06   -.93097E-04
   3  norm          2.5875        1.3857       -.15563E-06   -.25099E-02
   4  Prefactor     .10000E-03    17.775        .27183E-04** at limit **
   5  norm          .10000E-03    16.809       -.23545E-04** at limit **
   6  Prefactor     1.1611        3.4441       -.11743E-05   -.10350E-02
   7  Prefactor     1.8179        68.245       -.28812E-04   -.69588E-04
   8  Prefactor     3.5760        3.0318       -.56242E-06    .48758E-04
   9  Prefactor     6.8877        16.206        .28257E-05    .98212E-04
  10  norm          7.8032        3.1787        .32744E-07   -.47739E-04
  11  Prefactor     31.716        24.072        .51651E-05    .41616E-04
  12  norm          14.060        10.961        .13693E-06    .12079E-05
  13  norm          13.606        9.5086        .15635E-06   -.14260E-04
  14  Prefactor     18.215        22.986        .36796E-05    .12879E-05
  15  norm          16.142        17.183       -.13234E-06    .42755E-05
  16  Prefactor     9.1461        124.26       -.10383E-04   -.14830E-05
  17  Prefactor     .10000E-03    38.639       -.68135E-05** at limit **
  18  norm          19.191        18.732        .26311E-05    .81522E-04
  19  Normalizat    .90582        .21259       -.28251E-07    .18587E-03
  20  Prefactor     .99795        .14356        .42873E-06    .22128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.46322
  norm       = 2.58749
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.16113
  Prefactor  = 1.81794
  Prefactor  = 3.57602
  Prefactor  = 6.88769
  norm       = 7.80323
  Prefactor  = 31.7156
  norm       = 14.0596
  norm       = 13.6058
  Prefactor  = 18.2147
  norm       = 16.1418
  Prefactor  = 9.14614
  Prefactor  = 0.000100001
  norm       = 19.1913
  Normalizat = 0.905819
  Prefactor  = 0.997951
 **********
 **   18 **HESSE 
 **********

 FCN=   5922.268     FROM HESSE     STATUS=OK           301 CALLS     2640 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4632        11.607        .17193E-03   -1.5240    
   3  norm          2.5875        1.3891        .32022E-03   -1.5386    
   4  Prefactor     .10000E-03    17.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    16.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1611        3.4574        .23266E-03   -1.5492    
   7  Prefactor     1.8179        68.417        .30890E-03   -1.5438    
   8  Prefactor     3.5760        3.0348        .12008E-03   -1.5330    
   9  Prefactor     6.8877        16.016        .15291E-03   -1.5183    
  10  norm          7.8032        3.1784        .83774E-04   -1.5149    
  11  Prefactor     31.716        23.995        .71156E-04   -1.4581    
  12  norm          14.060        10.966        .10682E-03   -1.4958    
  13  norm          13.606        9.5091        .10859E-03   -1.4970    
  14  Prefactor     18.215        22.986        .93855E-04   -1.4854    
  15  norm          16.142        17.180        .99692E-04   -1.4904    
  16  Prefactor     9.1461        124.55        .13250E-03   -1.5103    
  17  Prefactor     .10000E-03    38.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.191        18.694        .91429E-04   -1.4832    
  19  Normalizat    .90582        .25634        .29288E-03   -.96256    
  20  Prefactor     .99795        .17420        .20093E-03   -.92798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22097e-09
Minuit parameter uncertainties:
  1  4.41472e-06
  2  11.6113
  3  1.38916
  4  4.18871e-07
  5  1.93692e-05
  6  3.45795
  7  22.332
  8  3.03495
  9  16.0263
  10  3.17843
  11  24.0019
  12  10.9676
  13  9.51012
  14  22.9967
  15  17.1852
  16  67.6742
  17  0.000314082
  18  18.6994
  19  0.256681
  20  0.174301
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  6.888e+00  1.603e+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.980e-01  1.743e-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:  9.058e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/91283/likelihoodResults_442281601_442540801_4FGL_J1359.4+0202_daily_bin783.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) = 5922.16183246
delta logL = 0.106159886635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5922.15123704
delta logL = 0.116755310116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7985       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1460       1.0000          .0000       10.000    
     3 'Normalizat'    .88085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0094       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=   5922.151     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      268 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8028        122.75        .60799E-02    .64063E-03
   2  Index         3.1470        3.7483        .14109        .11786E-03
   3  Normalizat    .88092        .51796E-01    .67037E-01    .11272E-04
   4  Prefactor     1.0092        .36255E-01    .43421E-01   -.17357E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8028
  Index      = 3.14701
  Normalizat = 0.880924
  Prefactor  = 1.00922
 **********
 **   18 **HESSE 
 **********

 FCN=   5922.151     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8028        117.48        .18463E-03   -1.5373    
   2  Index         3.1470        6.5545        .78011E-02   -.37965    
   3  Normalizat    .88092        .25530        .29656E-03   -.97134    
   4  Prefactor     1.0092        .18214        .19990E-03   -.92423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98858e-07
Minuit parameter uncertainties:
  1  36.3683
  2  6.10512
  3  0.255651
  4  0.182253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91283': 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) = 5922.15123372
delta logL = 0.116758620717

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.803e+00  3.637e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.147e+00  6.105e+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:  1.009e+00  1.823e-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:  8.809e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/91283/cmap_HighResolution_442281601_442540801_4FGL_J1359.4+0202_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-08 19:32:39.564020', job_id='91283', GAL2='1.01', fit_tolerance='1e-08', EG2='0.88', EG='0.91', time_epoch_completed='1631154759.56', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.17e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='783' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:32:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 91283: <4FGL_J1359.4+0202_daily_bin783> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin783> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 19:20:42 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:20:44 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:44 2021
Terminated at Wed Sep  8 19:32:40 2021
Results reported at Wed Sep  8 19:32:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin783 209.859 2.0424 442281601 442540801 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 :                                   557.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            718 sec.

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

