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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin793
RA = 209.859, Dec = 2.0424
tmin = 444873601, tmax = 445132801
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='91297', job_status='RUN', time_executed='2021-09-08 19:23:38.128469', time_epoch_executed='1631154218.13' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='793'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91297/ft1_4FGL_J1359.4+0202_daily_bin793.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91297/ft2_4FGL_J1359.4+0202_daily_bin793.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91297/ft1_4FGL_J1359.4+0202_daily_bin793.fits outfile=/scratch/kocevski/91297/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin793.fits ra=209.859 dec=2.0424 rad=12.0 tmin=444873601.0 tmax=445132801.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.50
user 3.23
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91297/ft1_filtered_4FGL_J1359.4+0202_daily_bin793.fits evtable="EVENTS" scfile=/scratch/kocevski/91297/ft2_4FGL_J1359.4+0202_daily_bin793.fits sctable="SC_DATA" expcube=/scratch/kocevski/91297/ltcube_444873601_445132801_4FGL_J1359.4+0202_daily_bin793.fits outfile=/scratch/kocevski/91297/expmap_444873601_445132801_4FGL_J1359.4+0202_daily_bin793.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/91297/ltcube_444873601_445132801_4FGL_J1359.4+0202_daily_bin793.fits
.....................!
real 192.31
user 186.64
sys 5.35

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/91297/ft1_filtered_4FGL_J1359.4+0202_daily_bin793.fits scfile=/scratch/kocevski/91297/ft2_4FGL_J1359.4+0202_daily_bin793.fits outfile=/scratch/kocevski/91297/cmap_444873601_445132801_4FGL_J1359.4+0202_daily_bin793.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91297/ft1_filtered_4FGL_J1359.4+0202_daily_bin793.fits scfile=/scratch/kocevski/91297/ft2_4FGL_J1359.4+0202_daily_bin793.fits outfile=/scratch/kocevski/91297/cmap_HighResolution_444873601_445132801_4FGL_J1359.4+0202_daily_bin793.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2860       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10709E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    26.418       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1535       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0776       1.0000         .10000E-03   10000.    
    10 'norm      '    .67599       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.876       1.0000         .10000E-03   10000.    
    12 'norm      '    31.918       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4914       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.279       1.0000         .10000E-03   10000.    
    15 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13059E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.971       1.0000         .10000E-03   10000.    
    18 'norm      '    28.331       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88004       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0247       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=   7895.562     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2552 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8459       -.89479E-07** at limit **
   2  Prefactor     2.2882        7.1865        .35962E-05   -.84223E-05
   3  norm          .10000E-03    .33618       -.84024E-08** at limit **
   4  Prefactor     .10000E-03    28.287       -.16313E-05** at limit **
   5  norm          26.423        22.151       -.31283E-06   -.45502E-05
   6  Prefactor     1.1545        3.5506        .38639E-06   -.18453E-05
   7  Prefactor     .10000E-03    4.3353       -.44955E-08** at limit **
   8  Prefactor     .10000E-03    2.6608       -.46883E-07** at limit **
   9  Prefactor     2.0810        10.669        .25949E-06   -.34493E-05
  10  norm          .67667        1.4662        .46304E-07   -.31362E-04
  11  Prefactor     19.884        17.733       -.30099E-06   -.26047E-04
  12  norm          31.923        14.207        .18637E-07   -.13812E-04
  13  norm          4.4924        5.4985        .24150E-06    .83827E-05
  14  Prefactor     46.270        28.561        .63430E-06   -.43371E-04
  15  norm          .10000E-03    23.271        .69740E-06** at limit **
  16  Prefactor     .10000E-03    321.45        .35904E-04** at limit **
  17  Prefactor     31.971        30.068       -.16739E-06   -.46602E-04
  18  norm          28.334        21.998       -.24656E-06   -.59565E-04
  19  Normalizat    .87984        .17388       -.35864E-06   -.14618E-03
  20  Prefactor     1.0246        .12189       -.30826E-06   -.20730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.28821
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 26.4233
  Prefactor  = 1.15448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.08103
  norm       = 0.676666
  Prefactor  = 19.8843
  norm       = 31.9234
  norm       = 4.49236
  Prefactor  = 46.2697
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.9708
  norm       = 28.3336
  Normalizat = 0.879845
  Prefactor  = 1.02462
 **********
 **   18 **HESSE 
 **********

 FCN=   7895.562     FROM HESSE     STATUS=OK           293 CALLS     2845 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2882        7.1710        .13576E-02   -1.5405    
   3  norm          .10000E-03    .53043        .99962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          26.423        22.157        .77941E-04   -1.4679    
   6  Prefactor     1.1545        3.5469        .27460E-03   -1.5493    
   7  Prefactor     .10000E-03    4.3402        .18068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7241        .14149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0810        10.582        .28653E-03   -1.5419    
  10  norm          .67667        1.4285        .15166E-03   -1.5543    
  11  Prefactor     19.884        17.674        .89839E-04   -1.4816    
  12  norm          31.923        14.216        .70924E-04   -1.4577    
  13  norm          4.4924        5.4851        .18998E-03   -1.5284    
  14  Prefactor     46.270        28.582        .58939E-04   -1.4346    
  15  norm          .10000E-03    23.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    321.68        .41153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.971        30.097        .70865E-04   -1.4577    
  18  norm          28.334        22.020        .75268E-04   -1.4643    
  19  Normalizat    .87984        .20667        .28953E-03   -.97172    
  20  Prefactor     1.0246        .14607        .19392E-03   -.91913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84751e-10
Minuit parameter uncertainties:
  1  9.77814e-08
  2  7.17374
  3  2.48358e-06
  4  2.35087e-05
  5  22.1644
  6  3.54751
  7  6.13482e-07
  8  1.35743e-07
  9  9.38793
  10  1.42856
  11  17.6788
  12  14.2173
  13  5.48571
  14  28.5906
  15  2.24536e-05
  16  0.000598478
  17  30.1111
  18  22.0268
  19  0.206859
  20  0.14613
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.081e+00  9.388e+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:  1.025e+00  1.461e-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.798e-01  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/91297/likelihoodResults_444873601_445132801_4FGL_J1359.4+0202_daily_bin793.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) = 7893.81914416
delta logL = 1.74293705272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7893.61470523
delta logL = 1.94737599009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.8518       1.0000          .0000       10.000    
     3 'Normalizat'    .78348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0728       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=   7893.615     FROM MIGRAD    STATUS=CONVERGED    234 CALLS      615 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .48219E-02    .20581E-03** at limit **
   2  Index         7.8517        2.2402        .11769        .20108E-03
   3  Normalizat    .78347        .53430E-01    .28885E-02    .92179E-05
   4  Prefactor     1.0728        .37957E-01    .19392E-03    .36325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.85168
  Normalizat = 0.783466
  Prefactor  = 1.07281
 **********
 **   18 **HESSE 
 **********

 FCN=   7893.615     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      654 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .11818E-01    .16513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8517        3.0630        .47233E-02    .60691    
   3  Normalizat    .78347        .10068        .11554E-03   -1.0068    
   4  Prefactor     1.0728        .72009E-01    .38783E-04   -.90340    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.94989e-10
Minuit parameter uncertainties:
  1  2.26582e-08
  2  3.45703
  3  0.100706
  4  0.0720155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91297': 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) = 7893.61470497
delta logL = 1.94737624421

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.266e-08  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  7.852e+00  3.457e+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.073e+00  7.202e-02  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:  7.835e-01  1.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 209.859 2.042
Photon Index (Free Index): 7.85 +/- 3.46
Photon Flux (Free Index): 7.48e-08 +/- 6.11e-07
Energy Flux (Free Index): 8.71e-06 +/- 7.08e-05

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/91297/cmap_HighResolution_444873601_445132801_4FGL_J1359.4+0202_daily_bin793.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-03', comment='SUCCESS', energy_flux2='8.71e-06', dlogl='1.95e+00', photon_flux2='7.48e-08', job_status='DONE', time_completed='2021-09-08 19:34:56.667398', photon_index_error2='3.46', photon_index2='7.85', ts='0.05', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='7.88e-08', energy_flux_error2='7.08e-05', EG='0.88', time_epoch_completed='1631154896.67', return_code='0', job_id='91297', GAL2='1.07', EG2='0.78', return_code2='102', photon_flux_error2='6.11e-07', ts2='4.16', photon_index='2.39' WHERE bin_id='793' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:34:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 91297: <4FGL_J1359.4+0202_daily_bin793> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin793 209.859 2.0424 444873601 445132801 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 :                                   677.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             241.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

