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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin581
RA = 209.859, Dec = 2.0424
tmin = 389923201, tmax = 390182401
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='90992', job_status='RUN', time_executed='2021-09-08 19:23:59.507615', time_epoch_executed='1631154239.51' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90992/ft1_4FGL_J1359.4+0202_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90992/ft2_4FGL_J1359.4+0202_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90992/ft1_4FGL_J1359.4+0202_daily_bin581.fits outfile=/scratch/kocevski/90992/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin581.fits ra=209.859 dec=2.0424 rad=12.0 tmin=389923201.0 tmax=390182401.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.47
user 3.25
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90992/ft1_filtered_4FGL_J1359.4+0202_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/90992/ft2_4FGL_J1359.4+0202_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/90992/ltcube_389923201_390182401_4FGL_J1359.4+0202_daily_bin581.fits outfile=/scratch/kocevski/90992/expmap_389923201_390182401_4FGL_J1359.4+0202_daily_bin581.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/90992/ltcube_389923201_390182401_4FGL_J1359.4+0202_daily_bin581.fits
.....................!
real 190.82
user 185.58
sys 4.88

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/90992/ft1_filtered_4FGL_J1359.4+0202_daily_bin581.fits scfile=/scratch/kocevski/90992/ft2_4FGL_J1359.4+0202_daily_bin581.fits outfile=/scratch/kocevski/90992/cmap_389923201_390182401_4FGL_J1359.4+0202_daily_bin581.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90992/ft1_filtered_4FGL_J1359.4+0202_daily_bin581.fits scfile=/scratch/kocevski/90992/ft2_4FGL_J1359.4+0202_daily_bin581.fits outfile=/scratch/kocevski/90992/cmap_HighResolution_389923201_390182401_4FGL_J1359.4+0202_daily_bin581.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24229E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .56545       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8580       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3033       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7175       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17309       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8285       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4772       1.0000         .10000E-03   10000.    
    12 'norm      '    21.902       1.0000         .10000E-03   10000.    
    13 'norm      '    14.168       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10924E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    38.533       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.101       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3370       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .74389       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=   7037.431     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2405 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10347E-03    15.926       -.14750E-04** at limit **
   2  Prefactor     .10000E-03    4.7694       -.10077E-06** at limit **
   3  norm          .56455        .98547       -.13675E-06   -.73607E-04
   4  Prefactor     2.8477        309.82        .88501E-05    .62440E-04
   5  norm          .10000E-03    7.6513       -.48596E-07** at limit **
   6  Prefactor     3.3033        3.4931       -.19977E-05    .59420E-03
   7  Prefactor     .10000E-03    30.420       -.62595E-06** at limit **
   8  Prefactor     5.7162        6.2300        .43677E-06    .10444E-02
   9  Prefactor     .16281        225.41        .91829E-04   -.23209E-04
  10  norm          1.8278        1.8235        .15702E-07    .63206E-04
  11  Prefactor     1.4712        83.100       -.30776E-04   -.98925E-04
  12  norm          21.898        11.358        .25339E-06    .81854E-03
  13  norm          14.165        7.5724        .63354E-07    .10107E-04
  14  Prefactor     .10000E-03    30.113        .10517E-05** at limit **
  15  norm          38.530        29.563        .15704E-05    .21843E-03
  16  Prefactor     20.086        53.018        .18867E-05    .87302E-04
  17  Prefactor     .10000E-03    7.2001        .17280E-07** at limit **
  18  norm          .10000E-03    4.4318        .38067E-08** at limit **
  19  Normalizat    1.3373        .19479       -.50992E-05   -.49559E-03
  20  Prefactor     .74385        .12861        .32783E-05   -.39317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010347
  Prefactor  = 0.0001
  norm       = 0.564547
  Prefactor  = 2.84773
  norm       = 0.0001
  Prefactor  = 3.30326
  Prefactor  = 0.0001
  Prefactor  = 5.71617
  Prefactor  = 0.162815
  norm       = 1.82778
  Prefactor  = 1.47116
  norm       = 21.8982
  norm       = 14.1655
  Prefactor  = 0.000100001
  norm       = 38.5297
  Prefactor  = 20.0863
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.33734
  Prefactor  = 0.743853
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.431     FROM HESSE     STATUS=OK           305 CALLS     2710 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10347E-03    11.904        .79409E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7817        .17892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .56455        .95890        .10503E-03   -1.5558    
   4  Prefactor     2.8477        309.55        .24048E-03   -1.5370    
   5  norm          .10000E-03    7.6521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3033        3.5315        .77932E-03   -1.5344    
   7  Prefactor     .10000E-03    31.414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7162        6.2125        .16798E-03   -1.5230    
   9  Prefactor     .16281        15.592        .67432E-01   -1.5627    
  10  norm          1.8278        1.8113        .10839E-03   -1.5438    
  11  Prefactor     1.4712        86.006        .35329E-03   -1.5465    
  12  norm          21.898        11.366        .85586E-04   -1.4772    
  13  norm          14.165        7.5669        .10641E-03   -1.4955    
  14  Prefactor     .10000E-03    30.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          38.530        29.593        .64568E-04   -1.4466    
  16  Prefactor     20.086        53.046        .89335E-04   -1.4811    
  17  Prefactor     .10000E-03    7.2015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4328        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3373        .23151        .24947E-03   -.82458    
  20  Prefactor     .74385        .15189        .22223E-03   -1.0183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01543e-09
Minuit parameter uncertainties:
  1  0.012856
  2  9.58749e-06
  3  0.95893
  4  59.6992
  5  4.9031e-06
  6  3.53176
  7  0.000197577
  8  6.21316
  9  3.18648
  10  1.81139
  11  22.5303
  12  11.3675
  13  7.56738
  14  0.000353597
  15  29.6047
  16  53.171
  17  4.94333e-06
  18  1.82995e-06
  19  0.231692
  20  0.151976
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.628e-01  3.186e+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:  7.439e-01  1.520e-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.337e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 8.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90992/likelihoodResults_389923201_390182401_4FGL_J1359.4+0202_daily_bin581.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): 102
logL (Free Index) = 7036.89397529
delta logL = 0.537041257827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7036.88257693
delta logL = 0.548439615439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28963       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3420       1.0000          .0000       10.000    
     3 'Normalizat'    1.2663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77290       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=   7036.883     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      244 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28828        4.4356        .98902E-02    .23615E-02
   2  Index         4.3438        2.5747        .10349        .21434E-03
   3  Normalizat    1.2663        .37751E-01    .57721E-01   -.30193E-04
   4  Prefactor     .77292        .26031E-01    .43363E-01   -.86575E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.288276
  Index      = 4.34382
  Normalizat = 1.26629
  Prefactor  = 0.772916
 **********
 **   18 **HESSE 
 **********

 FCN=   7036.883     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      279 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28828        14.213        .45280E-03   -1.5601    
   2  Index         4.3438        7.1329        .58709E-02   -.13162    
   3  Normalizat    1.2663        .15246        .25526E-03   -.84578    
   4  Prefactor     .77292        .10364        .21838E-03   -1.0073    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.79276e-10
Minuit parameter uncertainties:
  1  4.04862
  2  6.2574
  3  0.152509
  4  0.103662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90992': 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): 102
logL (Free Index) = 7036.8825764
delta logL = 0.548440146439

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.883e-01  4.049e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  4.344e+00  6.257e+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:  7.729e-01  1.037e-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.266e+00  1.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 209.859 2.042
Photon Index (Free Index): 4.34 +/- 6.26
Photon Flux (Free Index): 5.64e-08 +/- 5.39e-08
Energy Flux (Free Index): 8.03e-06 +/- 9.56e-06

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/90992/cmap_HighResolution_389923201_390182401_4FGL_J1359.4+0202_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', comment='SUCCESS', energy_flux2='8.03e-06', dlogl='5.48e-01', photon_flux2='5.64e-08', job_status='DONE', time_completed='2021-09-08 19:34:11.450891', photon_index_error2='6.26', photon_index2='4.34', ts='0.00', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='8.97e-08', energy_flux_error2='9.56e-06', EG='1.34', time_epoch_completed='1631154851.45', return_code='0', job_id='90992', GAL2='0.77', EG2='1.27', return_code2='102', photon_flux_error2='5.39e-08', ts2='1.18', photon_index='2.39' WHERE bin_id='581' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:34:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 90992: <4FGL_J1359.4+0202_daily_bin581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin581 209.859 2.0424 389923201 390182401 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 :                                   609.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            834 sec.

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

