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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin597
RA = 209.859, Dec = 2.0424
tmin = 394070401, tmax = 394329601
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='91015', job_status='RUN', time_executed='2021-09-08 19:24:26.861604', time_epoch_executed='1631154266.86' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91015

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91015/ft1_4FGL_J1359.4+0202_daily_bin597.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91015/ft2_4FGL_J1359.4+0202_daily_bin597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91015/ft1_4FGL_J1359.4+0202_daily_bin597.fits outfile=/scratch/kocevski/91015/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin597.fits ra=209.859 dec=2.0424 rad=12.0 tmin=394070401.0 tmax=394329601.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 4.47
user 4.23
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91015/ft1_filtered_4FGL_J1359.4+0202_daily_bin597.fits evtable="EVENTS" scfile=/scratch/kocevski/91015/ft2_4FGL_J1359.4+0202_daily_bin597.fits sctable="SC_DATA" expcube=/scratch/kocevski/91015/ltcube_394070401_394329601_4FGL_J1359.4+0202_daily_bin597.fits outfile=/scratch/kocevski/91015/expmap_394070401_394329601_4FGL_J1359.4+0202_daily_bin597.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/91015/ltcube_394070401_394329601_4FGL_J1359.4+0202_daily_bin597.fits
.....................!
real 190.96
user 185.01
sys 5.64

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/91015/ft1_filtered_4FGL_J1359.4+0202_daily_bin597.fits scfile=/scratch/kocevski/91015/ft2_4FGL_J1359.4+0202_daily_bin597.fits outfile=/scratch/kocevski/91015/cmap_394070401_394329601_4FGL_J1359.4+0202_daily_bin597.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91015/ft1_filtered_4FGL_J1359.4+0202_daily_bin597.fits scfile=/scratch/kocevski/91015/ft2_4FGL_J1359.4+0202_daily_bin597.fits outfile=/scratch/kocevski/91015/cmap_HighResolution_394070401_394329601_4FGL_J1359.4+0202_daily_bin597.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=209.859 yref=2.0424 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.170       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45098       1.0000         .10000E-03   10000.    
     3 'norm      '    .39714       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.197       1.0000         .10000E-03   10000.    
     5 'norm      '    14.101       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9012       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7465       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.707       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7957       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7336       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1503       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .59718E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2852       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94237       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8338.660     FROM MIGRAD    STATUS=FAILED       709 CALLS     2083 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.170        14.711        .11987E-03    .52352E-04
   2  Prefactor     .50811        49.348        .42287E-02    .12111E-02
   3  norm          .39737        .95847        .13297E-03    .92354E-03
   4  Prefactor     25.200        28.663        .79803E-04   -.57668E-04
   5  norm          14.101        16.289        .10666E-03    .15348E-04
   6  Prefactor     .10000E-03    1.7200        .11612E-02** at limit **
   7  Prefactor     8.9012        18.898        .13434E-03    .22341E-04
   8  Prefactor     .10000E-03    1.3997        .10537E-02** at limit **
   9  Prefactor     .10000E-03    9.8572        .18142E-02** at limit **
  10  norm          2.7460        1.8146        .95182E-04    .99376E-04
  11  Prefactor     12.709        18.211        .11237E-03   -.73855E-04
  12  norm          5.7958        5.8098        .16683E-03   -.14529E-03
  13  norm          2.7314        8.0796        .24627E-03    .35915E-03
  14  Prefactor     .10000E-03    24.460        .18142E-02** at limit **
  15  norm          11.334        12.084        .11901E-03   -.26366E-04
  16  Prefactor     6.1524        55.385        .16188E-03   -.20647E-04
  17  Prefactor     .10001E-03    30.014        .18142E-02** at limit **
  18  norm          .10001E-03    12.460        .10257    ** at limit **
  19  Normalizat    1.2852        .22493        .26741E-03    .36703E-03
  20  Prefactor     .94233        .15386        .21485E-03    .68927E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8338.660     FROM SIMPLEX   STATUS=UNCHANGED    761 CALLS     2844 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.170        14.711        .46179E-05   -1.5039    
   2  Prefactor     .50811        49.348        .72601E-04   -1.5565    
   3  norm          .39737        .95847        .15946E-05   -1.5582    
   4  Prefactor     25.200        28.663        .68733E-05   -1.4704    
   5  norm          14.101        16.289        .65246E-05   -1.4957    
   6  Prefactor     .10000E-03    1.7200        .16580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9012        18.898        .79796E-07   -1.5111    
   8  Prefactor     .10000E-03    1.3997        .13300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8572        .32673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7460        1.8146        .77142E-07   -1.5377    
  11  Prefactor     12.709        18.211        .78805E-07   -1.4995    
  12  norm          5.7958        5.8098        .77298E-07   -1.5226    
  13  norm          2.7314        8.0796        .78104E-07   -1.5377    
  14  Prefactor     .10000E-03    24.460        .53234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.334        12.084        .75758E-07   -1.5035    
  16  Prefactor     6.1524        55.385        .90033E-07   -1.5212    
  17  Prefactor     .10001E-03    30.014        .46151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    12.460        .68188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2852        .22493        .55195E-07   -.84011    
  20  Prefactor     .94233        .15386        .53566E-07   -.94677    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8338.660     FROM MIGRAD    STATUS=CONVERGED    286 CALLS     3130 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.170        14.710        .47949E-05   -.18968E-06
   2  Prefactor     .50819        49.850        .84575E-03    .23120E-05
   3  norm          .39736        .95823        .53189E-05    .85497E-06
   4  Prefactor     25.200        28.663        .15961E-04   -.28492E-06
   5  norm          14.101        16.287        .42665E-05     .0000    
   6  Prefactor     .10000E-03    1.7204        .23224E-03** at limit **
   7  Prefactor     8.9012        18.890        .53738E-05    .33849E-06
   8  Prefactor     .10000E-03    1.3997        .21073E-03** at limit **
   9  Prefactor     .10000E-03    9.8606        .36285E-03** at limit **
  10  norm          2.7460        1.8143        .38073E-05    .11944E-05
  11  Prefactor     12.709        18.206        .44948E-05    .40469E-06
  12  norm          5.7958        5.8097        .66731E-05   -.13629E-06
  13  norm          2.7313        8.0768        .98509E-05    .64628E-06
  14  Prefactor     .10000E-03    24.468        .36285E-03** at limit **
  15  norm          11.334        12.084        .47603E-05    .95529E-06
  16  Prefactor     6.1526        55.277        .64753E-05    .14046E-06
  17  Prefactor     .10000E-03    30.019        .36285E-03** at limit **
  18  norm          .10001E-03    12.396        .10301    ** at limit **
  19  Normalizat    1.2852        .22487        .53482E-04   -.31461E-05
  20  Prefactor     .94233        .15400        .42970E-04   -.23283E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1702
  Prefactor  = 0.508186
  norm       = 0.397361
  Prefactor  = 25.1997
  norm       = 14.1014
  Prefactor  = 0.0001
  Prefactor  = 8.90124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.74597
  Prefactor  = 12.709
  norm       = 5.79583
  norm       = 2.73129
  Prefactor  = 0.0001
  norm       = 11.3339
  Prefactor  = 6.15256
  Prefactor  = 0.0001
  norm       = 0.000100006
  Normalizat = 1.28515
  Prefactor  = 0.942325
 **********
 **   18 **HESSE 
 **********

 FCN=   8338.660     FROM HESSE     STATUS=OK           281 CALLS     3411 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.170        14.710        .47949E-05   -1.5039    
   2  Prefactor     .50819        49.802        .33830E-04   -1.5565    
   3  norm          .39736        .95792        .10638E-05   -1.5582    
   4  Prefactor     25.200        28.652        .31921E-05   -1.4704    
   5  norm          14.101        16.287        .42665E-05   -1.4957    
   6  Prefactor     .10000E-03    1.7204        .46447E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9012        18.890        .53738E-05   -1.5111    
   8  Prefactor     .10000E-03    1.3997        .42147E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8607        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7460        1.8145        .76145E-06   -1.5377    
  11  Prefactor     12.709        18.205        .44948E-05   -1.4995    
  12  norm          5.7958        5.8097        .66731E-05   -1.5226    
  13  norm          2.7313        8.0764        .98509E-05   -1.5377    
  14  Prefactor     .10000E-03    24.469        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.334        12.052        .95206E-06   -1.5035    
  16  Prefactor     6.1526        55.275        .64753E-05   -1.5212    
  17  Prefactor     .10000E-03    30.020        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    12.406        .10294       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2852        .22485        .10696E-04   -.84011    
  20  Prefactor     .94233        .15403        .85939E-05   -.94677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22914e-12
Minuit parameter uncertainties:
  1  14.7147
  2  10.0692
  3  0.957959
  4  28.668
  5  16.2922
  6  7.81831e-08
  7  18.9026
  8  2.84274e-08
  9  9.97847e-08
  10  1.81456
  11  18.2128
  12  5.8103
  13  8.07963
  14  1.53413e-06
  15  12.0543
  16  36.9279
  17  1.87264e-06
  18  0.000554126
  19  0.225021
  20  0.154104
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  9.978e-08  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.423e-01  1.541e-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.285e+00  2.250e-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: 7.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91015/likelihoodResults_394070401_394329601_4FGL_J1359.4+0202_daily_bin597.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) = 8338.66003822
delta logL = -0.000483571757286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8338.65955604
delta logL = -1.38781615533e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13841E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4274       1.0000          .0000       10.000    
     3 'Normalizat'    1.2851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94234       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=   8338.660     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      210 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    253.44        .90712E-02** at limit **
   2  Index         2.4799        8.5061        .50000       -.47672E-04
   3  Normalizat    1.2852        .21200E-01    .60462E-01    .52241E-05
   4  Prefactor     .94233        .14926E-01    .45542E-01    .47128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.47993
  Normalizat = 1.28515
  Prefactor  = 0.942326
 **********
 **   18 **HESSE 
 **********

 FCN=   8338.660     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1285.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4799        8.7536        .50000       -.52824    
   3  Normalizat    1.2852        .55118E-01    .26741E-03   -.84011    
   4  Prefactor     .94233        .38808E-01    .21485E-03   -.94677    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.2497e-07
Minuit parameter uncertainties:
  1  0.00541298
  2  45.514
  3  0.0551205
  4  0.0388093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91015': 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) = 8338.65955369
delta logL = 9.62052581599e-07

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  5.413e-03  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.480e+00  4.551e+01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.423e-01  3.881e-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:  1.285e+00  5.512e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/91015/cmap_HighResolution_394070401_394329601_4FGL_J1359.4+0202_daily_bin597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.49e-08', time_completed='2021-09-08 19:36:36.132582', job_id='91015', GAL2='0.94', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631154996.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='9.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='597' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:36:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 91015: <4FGL_J1359.4+0202_daily_bin597> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin597 209.859 2.0424 394070401 394329601 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 :                                   727.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

