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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin677
RA = 209.859, Dec = 2.0424
tmin = 414806401, tmax = 415065601
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='91129', job_status='RUN', time_executed='2021-09-08 19:24:23.554810', time_epoch_executed='1631154263.55' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91129

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91129/ft1_4FGL_J1359.4+0202_daily_bin677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91129/ft2_4FGL_J1359.4+0202_daily_bin677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91129/ft1_4FGL_J1359.4+0202_daily_bin677.fits outfile=/scratch/kocevski/91129/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin677.fits ra=209.859 dec=2.0424 rad=12.0 tmin=414806401.0 tmax=415065601.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 5.91
user 5.62
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91129/ft1_filtered_4FGL_J1359.4+0202_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/91129/ft2_4FGL_J1359.4+0202_daily_bin677.fits sctable="SC_DATA" expcube=/scratch/kocevski/91129/ltcube_414806401_415065601_4FGL_J1359.4+0202_daily_bin677.fits outfile=/scratch/kocevski/91129/expmap_414806401_415065601_4FGL_J1359.4+0202_daily_bin677.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/91129/ltcube_414806401_415065601_4FGL_J1359.4+0202_daily_bin677.fits
.....................!
real 189.96
user 185.10
sys 4.45

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/91129/ft1_filtered_4FGL_J1359.4+0202_daily_bin677.fits scfile=/scratch/kocevski/91129/ft2_4FGL_J1359.4+0202_daily_bin677.fits outfile=/scratch/kocevski/91129/cmap_414806401_415065601_4FGL_J1359.4+0202_daily_bin677.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.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1922       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2817       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.488       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3621       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .62479       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6913       1.0000         .10000E-03   10000.    
    12 'norm      '    17.895       1.0000         .10000E-03   10000.    
    13 'norm      '    8.5870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.164       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.289       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.505       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1095       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=   8287.162     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1735 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1930        33.281        .10124E-04    .95260E-05
   2  Prefactor     .10000E-03    16.559        .13866E-05** at limit **
   3  norm          3.2817        1.5523        .10796E-08    .49183E-04
   4  Prefactor     29.480        38.640        .17078E-05   -.27534E-05
   5  norm          .10000E-03    10.254       -.90860E-07** at limit **
   6  Prefactor     6.3620        4.4009        .34402E-07   -.32638E-05
   7  Prefactor     .10000E-03    14.203       -.20193E-05** at limit **
   8  Prefactor     .10000E-03    1.0100       -.14839E-07** at limit **
   9  Prefactor     .10000E-03    7.1877       -.12656E-06** at limit **
  10  norm          .62492        1.8948        .35613E-06   -.12556E-03
  11  Prefactor     7.6910        15.584        .31015E-06    .14025E-04
  12  norm          17.895        10.101        .32201E-07    .16468E-05
  13  norm          8.5859        8.8606        .18036E-07   -.22755E-04
  14  Prefactor     .10000E-03    9.6727        .78212E-06** at limit **
  15  norm          20.166        18.040       -.31549E-06   -.19629E-04
  16  Prefactor     11.289        20.896        .70250E-07   -.21073E-06
  17  Prefactor     22.505        15.258       -.85643E-07   -.60400E-05
  18  norm          .10000E-03    4.2278        .62337E-07** at limit **
  19  Normalizat    1.0020        .18907       -.65934E-06    .13446E-04
  20  Prefactor     1.1095        .12972        .47157E-07   -.24378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.19299
  Prefactor  = 0.0001
  norm       = 3.28167
  Prefactor  = 29.4804
  norm       = 0.0001
  Prefactor  = 6.362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.624916
  Prefactor  = 7.69099
  norm       = 17.8952
  norm       = 8.58589
  Prefactor  = 0.0001
  norm       = 20.1661
  Prefactor  = 11.2887
  Prefactor  = 22.5052
  norm       = 0.0001
  Normalizat = 1.00196
  Prefactor  = 1.10951
 **********
 **   18 **HESSE 
 **********

 FCN=   8287.162     FROM HESSE     STATUS=OK           299 CALLS     2034 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1930        33.441        .13898E-02   -1.5412    
   2  Prefactor     .10000E-03    16.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2817        1.5511        .74903E-04   -1.5346    
   4  Prefactor     29.480        38.645        .73780E-04   -1.4622    
   5  norm          .10000E-03    10.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3620        4.4056        .15136E-03   -1.5203    
   7  Prefactor     .10000E-03    14.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0148        .89346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .62492        2.3161        .19259E-02   -1.5550    
  11  Prefactor     7.6910        15.578        .14460E-03   -1.5153    
  12  norm          17.895        10.107        .94678E-04   -1.4862    
  13  norm          8.5859        8.6836        .13679E-03   -1.5122    
  14  Prefactor     .10000E-03    9.7187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.166        18.055        .89196E-04   -1.4810    
  16  Prefactor     11.289        20.893        .11924E-03   -1.5036    
  17  Prefactor     22.505        15.251        .84434E-04   -1.4759    
  18  norm          .10000E-03    4.2358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0020        .22337        .30245E-03   -.92965    
  20  Prefactor     1.1095        .15437        .20219E-03   -.89163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49349e-08
Minuit parameter uncertainties:
  1  17.1383
  2  7.57207e-05
  3  1.55114
  4  38.6774
  5  1.7511e-07
  6  4.40586
  7  1.65934e-05
  8  6.26848e-07
  9  4.5843e-06
  10  2.31644
  11  15.5858
  12  10.1076
  13  8.68483
  14  6.99462e-06
  15  18.0597
  16  20.907
  17  15.2541
  18  4.68055e-06
  19  0.223581
  20  0.154434
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  4.584e-06  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.110e+00  1.544e-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.002e+00  2.236e-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: 6.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91129/likelihoodResults_414806401_415065601_4FGL_J1359.4+0202_daily_bin677.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) = 8287.16280835
delta logL = -0.000655152749459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8287.1621533
delta logL = -1.11216650112e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3878       1.0000          .0000       10.000    
     3 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1096       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=   8287.162     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6134        .90712E-02** at limit **
   2  Index         2.3906        5.0627        .50000       -.33050E-05
   3  Normalizat    1.0020        .40184E-02    .68373E-01    .31758E-04
   4  Prefactor     1.1095        .28240E-02    .37234E-01    .16211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3906
  Normalizat = 1.00196
  Prefactor  = 1.10951
 **********
 **   18 **HESSE 
 **********

 FCN=   8287.162     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3906        7.4027        .50000       -.54905    
   3  Normalizat    1.0020        .15686E-01    .30245E-03   -.92965    
   4  Prefactor     1.1095        .11039E-01    .20219E-03   -.89163    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05758e-07
Minuit parameter uncertainties:
  1  5.31869e-05
  2  414.972
  3  0.0156865
  4  0.0110391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91129': 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) = 8287.16215319
delta logL = 4.42378222942e-09

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  5.319e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.391e+00  4.150e+02  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.110e+00  1.104e-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.002e+00  1.569e-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/91129/cmap_HighResolution_414806401_415065601_4FGL_J1359.4+0202_daily_bin677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-09-08 19:34:36.044914', job_id='91129', GAL2='1.11', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631154876.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='4.42e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='677' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:34:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 91129: <4FGL_J1359.4+0202_daily_bin677> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin677 209.859 2.0424 414806401 415065601 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 :                                 1256 MB
    Average Memory :                             243.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            846 sec.

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

