/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 100 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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1359.4+0202_daily_bin184
RA = 209.859, Dec = 2.0424
tmin = 287020801, tmax = 287280001
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='88121', job_status='RUN', time_executed='2021-09-08 19:12:12.737312', time_epoch_executed='1631153532.74' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88121

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88121/ft1_4FGL_J1359.4+0202_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88121/ft2_4FGL_J1359.4+0202_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88121/ft1_4FGL_J1359.4+0202_daily_bin184.fits outfile=/scratch/kocevski/88121/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin184.fits ra=209.859 dec=2.0424 rad=12.0 tmin=287020801.0 tmax=287280001.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.58
user 4.37
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88121/ft1_filtered_4FGL_J1359.4+0202_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/88121/ft2_4FGL_J1359.4+0202_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/88121/ltcube_287020801_287280001_4FGL_J1359.4+0202_daily_bin184.fits outfile=/scratch/kocevski/88121/expmap_287020801_287280001_4FGL_J1359.4+0202_daily_bin184.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/88121/ltcube_287020801_287280001_4FGL_J1359.4+0202_daily_bin184.fits
.....................!
real 189.69
user 185.17
sys 4.09

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/88121/ft1_filtered_4FGL_J1359.4+0202_daily_bin184.fits scfile=/scratch/kocevski/88121/ft2_4FGL_J1359.4+0202_daily_bin184.fits outfile=/scratch/kocevski/88121/cmap_287020801_287280001_4FGL_J1359.4+0202_daily_bin184.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88121/ft1_filtered_4FGL_J1359.4+0202_daily_bin184.fits scfile=/scratch/kocevski/88121/ft2_4FGL_J1359.4+0202_daily_bin184.fits outfile=/scratch/kocevski/88121/cmap_HighResolution_287020801_287280001_4FGL_J1359.4+0202_daily_bin184.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.54
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/88121/ft1_filtered_4FGL_J1359.4+0202_daily_bin184.fits', '/scratch/kocevski/88121/ft2_4FGL_J1359.4+0202_daily_bin184.fits', expMap='/scratch/kocevski/88121/expmap_287020801_287280001_4FGL_J1359.4+0202_daily_bin184.fits', expCube='/scratch/kocevski/88121/ltcube_287020801_287280001_4FGL_J1359.4+0202_daily_bin184.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/88121/Model_4FGL_J1359.4+0202_daily_bin184.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/88121/ft1_filtered_4FGL_J1359.4+0202_daily_bin184.fits
Spacecraft file(s): /scratch/kocevski/88121/ft2_4FGL_J1359.4+0202_daily_bin184.fits
Exposure map: /scratch/kocevski/88121/expmap_287020801_287280001_4FGL_J1359.4+0202_daily_bin184.fits
Exposure cube: /scratch/kocevski/88121/ltcube_287020801_287280001_4FGL_J1359.4+0202_daily_bin184.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/88121/Model_4FGL_J1359.4+0202_daily_bin184.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5931.63028685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32704E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.339       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6587       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    122.14       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .88104       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2995       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.315       1.0000         .10000E-03   10000.    
    12 'norm      '    21.939       1.0000         .10000E-03   10000.    
    13 'norm      '    .15732E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.850       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4208       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58290E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89378       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0466       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=   5931.002     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     2177 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10056E-03    21.730        .95974E-01** at limit **
   2  Prefactor     .10000E-03    9.6460        .18142E-02** at limit **
   3  norm          12.339        2.8093        .58626E-04    .31628E-03
   4  Prefactor     .10000E-03    49.284        .18142E-02** at limit **
   5  norm          3.6601        29.168        .21118E-03   -.66216E-05
   6  Prefactor     .10000E-03    2.1047        .10865E-02** at limit **
   7  Prefactor     122.14        38.808        .36416E-04    .16396E-03
   8  Prefactor     .88147        2.5511        .21928E-02   -.23006E-03
   9  Prefactor     .10000E-03    8.3266        .18142E-02** at limit **
  10  norm          2.2988        2.8870        .14018E-03    .11954E-03
  11  Prefactor     17.343        22.104        .96252E-04    .43111E-04
  12  norm          21.939        16.084        .85516E-04   -.18213E-04
  13  norm          .10000E-03    22.663        .32739E-02** at limit **
  14  Prefactor     13.849        15.375        .10763E-03   -.87208E-04
  15  norm          3.4218        20.885        .10935E-02   -.45992E-04
  16  Prefactor     .10000E-03    52.241        .16639    ** at limit **
  17  Prefactor     .10000E-03    19.452        .18142E-02** at limit **
  18  norm          .10000E-03    13.424        .18142E-02** at limit **
  19  Normalizat    .89387        .26787        .32453E-03    .28684E-03
  20  Prefactor     1.0465        .18087        .20704E-03    .53100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100556
  Prefactor  = 0.0001
  norm       = 12.339
  Prefactor  = 0.0001
  norm       = 3.66014
  Prefactor  = 0.0001
  Prefactor  = 122.142
  Prefactor  = 0.881475
  Prefactor  = 0.0001
  norm       = 2.2988
  Prefactor  = 17.3433
  norm       = 21.9391
  norm       = 0.0001
  Prefactor  = 13.8488
  norm       = 3.42179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.893871
  Prefactor  = 1.04647
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.002     FROM HESSE     STATUS=OK           295 CALLS     2472 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10056E-03    20.497        .10004       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6497        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.339        2.8094        .23450E-05   -1.5005    
   4  Prefactor     .10000E-03    49.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6601        29.171        .84472E-05   -1.5325    
   6  Prefactor     .10000E-03    2.1049        .21729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     122.14        38.808        .72833E-05   -1.3493    
   8  Prefactor     .88147        2.5475        .87711E-04   -1.5520    
   9  Prefactor     .10000E-03    8.3277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2988        2.8863        .56072E-05   -1.5405    
  11  Prefactor     17.343        22.106        .38501E-05   -1.4875    
  12  norm          21.939        16.085        .34206E-05   -1.4771    
  13  norm          .10000E-03    22.870        .65477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.849        15.374        .21526E-04   -1.4964    
  15  norm          3.4218        20.877        .43742E-04   -1.5338    
  16  Prefactor     .10000E-03    52.339        .16614       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89387        .26811        .12981E-04   -.96676    
  20  Prefactor     1.0465        .18103        .41408E-04   -.91196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89608e-10
Minuit parameter uncertainties:
  1  0.00675675
  2  4.22902e-05
  3  2.8094
  4  0.000103466
  5  20.6796
  6  1.18896e-05
  7  38.8158
  8  2.54784
  9  5.30062e-05
  10  2.88649
  11  22.1168
  12  16.0885
  13  0.000167833
  14  15.3788
  15  16.9127
  16  0.000131908
  17  5.97061e-05
  18  5.20193e-05
  19  0.268508
  20  0.181138
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  5.301e-05  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.046e+00  1.811e-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.939e-01  2.685e-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: 9.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88121/likelihoodResults_287020801_287280001_4FGL_J1359.4+0202_daily_bin184.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) = 5931.00255111
delta logL = -0.000572214929889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5931.00197902
delta logL = -1.2293276086e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3805       1.0000          .0000       10.000    
     3 'Normalizat'    .89381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0465       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=   5931.002     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    274.37        .18142E-02** at limit **
   2  Index         2.3284        8.3282        .50000        .29071E-05
   3  Normalizat    .89387        .32503E-01    .32453E-03    .60954E-05
   4  Prefactor     1.0465        .22406E-01    .20704E-03    .71383E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100272
  Index      = 2.32837
  Normalizat = 0.893871
  Prefactor  = 1.04647
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.002     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10027E-03    1243.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3284        5.0882        .50000       -.56371    
   3  Normalizat    .89387        .89623E-01    .12981E-04   -.96676    
   4  Prefactor     1.0465        .61254E-01    .82816E-05   -.91196    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58718e-08
Minuit parameter uncertainties:
  1  0.037606
  2  3195.31
  3  0.0896377
  4  0.0612577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88121': 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) = 5931.00197886
delta logL = 3.38386598742e-08

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.003e-04  3.761e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.328e+00  3.195e+03  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.046e+00  6.126e-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:  8.939e-01  8.964e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/88121/cmap_HighResolution_287020801_287280001_4FGL_J1359.4+0202_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.46e-08', time_completed='2021-09-08 19:21:23.293996', job_id='88121', GAL2='1.05', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631154083.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='184' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:21:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 88121: <4FGL_J1359.4+0202_daily_bin184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin184 209.859 2.0424 287020801 287280001 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 :                                   548.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            663 sec.

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

