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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin260
RA = 209.859, Dec = 2.0424
tmin = 306720001, tmax = 306979201
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='88245', job_status='RUN', time_executed='2021-09-08 19:14:30.699266', time_epoch_executed='1631153670.7' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88245/ft1_4FGL_J1359.4+0202_daily_bin260.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88245/ft2_4FGL_J1359.4+0202_daily_bin260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88245/ft1_4FGL_J1359.4+0202_daily_bin260.fits outfile=/scratch/kocevski/88245/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin260.fits ra=209.859 dec=2.0424 rad=12.0 tmin=306720001.0 tmax=306979201.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.91
user 4.65
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88245/ft2_4FGL_J1359.4+0202_daily_bin260.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/88245/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin260.fits evtable="EVENTS" outfile="/scratch/kocevski/88245/ft1_filtered_4FGL_J1359.4+0202_daily_bin260.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/88245/ft1_filtered_4FGL_J1359.4+0202_daily_bin260.fits" evtable="EVENTS" scfile=/scratch/kocevski/88245/ft2_4FGL_J1359.4+0202_daily_bin260.fits sctable="SC_DATA" outfile=/scratch/kocevski/88245/ltcube_306720001_306979201_4FGL_J1359.4+0202_daily_bin260.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/88245/ft2_4FGL_J1359.4+0202_daily_bin260.fits
.....................!
real 11.79
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88245/ft1_filtered_4FGL_J1359.4+0202_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/88245/ft2_4FGL_J1359.4+0202_daily_bin260.fits sctable="SC_DATA" expcube=/scratch/kocevski/88245/ltcube_306720001_306979201_4FGL_J1359.4+0202_daily_bin260.fits outfile=/scratch/kocevski/88245/expmap_306720001_306979201_4FGL_J1359.4+0202_daily_bin260.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/88245/ltcube_306720001_306979201_4FGL_J1359.4+0202_daily_bin260.fits
.....................!
real 190.55
user 185.78
sys 4.44

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/88245/ft1_filtered_4FGL_J1359.4+0202_daily_bin260.fits scfile=/scratch/kocevski/88245/ft2_4FGL_J1359.4+0202_daily_bin260.fits outfile=/scratch/kocevski/88245/cmap_306720001_306979201_4FGL_J1359.4+0202_daily_bin260.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.52
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.808       1.0000         .10000E-03   10000.    
     3 'norm      '    109.44       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4347       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12482E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2263       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16455E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.014       1.0000         .10000E-03   10000.    
    10 'norm      '    11.569       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.9534       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.7882       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.976       1.0000         .10000E-03   10000.    
    18 'norm      '    .11204E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .46121       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3046       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=   10106.13     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2101 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.423        19.924       -.19344E-09   -.14161E-04
   2  Prefactor     23.809        14.981        .59420E-07   -.22921E-05
   3  norm          109.44        5.4559       -.30025E-08   -.14409E-05
   4  Prefactor     .10000E-03    24.136        .23890E-07** at limit **
   5  norm          5.4347        27.779        .30782E-05   -.13522E-03
   6  Prefactor     .10000E-03    3.0367        .31352E-08** at limit **
   7  Prefactor     8.2269        12.201        .10362E-05   -.28798E-03
   8  Prefactor     .10000E-03    7.6779        .10540E-07** at limit **
   9  Prefactor     13.012        9.1264        .40513E-08    .85975E-07
  10  norm          11.569        3.0740        .14826E-07   -.19799E-04
  11  Prefactor     .10000E-03    13.266        .44178E-07** at limit **
  12  norm          9.9545        8.5526       -.77753E-07    .73139E-04
  13  norm          .10000E-03    2.9682        .66032E-08** at limit **
  14  Prefactor     .10000E-03    13.856       -.40927E-07** at limit **
  15  norm          3.7860        23.609        .77994E-07   -.19246E-04
  16  Prefactor     .10000E-03    64.693        .22408E-06** at limit **
  17  Prefactor     29.985        32.436        .30073E-05    .23060E-03
  18  norm          .10000E-03    42.911        .63355E-06** at limit **
  19  Normalizat    .46141        .22871       -.60125E-07   -.41755E-04
  20  Prefactor     1.3044        .15777       -.27085E-06    .14243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4226
  Prefactor  = 23.8086
  norm       = 109.444
  Prefactor  = 0.0001
  norm       = 5.43468
  Prefactor  = 0.000100002
  Prefactor  = 8.22689
  Prefactor  = 0.0001
  Prefactor  = 13.0125
  norm       = 11.5692
  Prefactor  = 0.0001
  norm       = 9.95453
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.78596
  Prefactor  = 0.0001
  Prefactor  = 29.9849
  norm       = 0.000100002
  Normalizat = 0.461407
  Prefactor  = 1.30443
 **********
 **   18 **HESSE 
 **********

 FCN=   10106.13     FROM HESSE     STATUS=OK           303 CALLS     2404 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.423        19.888        .10547E-03   -1.4948    
   2  Prefactor     23.809        14.970        .82094E-04   -1.4732    
   3  norm          109.44        5.4453        .38447E-04   -1.3612    
   4  Prefactor     .10000E-03    24.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4347        32.941        .86184E-03   -1.5242    
   6  Prefactor     .10000E-03    3.4142        .49804E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.2269        12.867        .69890E-03   -1.5134    
   8  Prefactor     .10000E-03    8.0218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.012        9.1242        .11104E-03   -1.4986    
  10  norm          11.569        3.0696        .87416E-04   -1.5028    
  11  Prefactor     .10000E-03    13.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.9545        8.5723        .63506E-03   -1.5077    
  13  norm          .10000E-03    2.9811        .16912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7860        23.687        .20740E-03   -1.5319    
  16  Prefactor     .10000E-03    64.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.985        35.261        .73179E-04   -1.4612    
  18  norm          .10000E-03    43.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .46141        .25356        .53269E-03   -1.1424    
  20  Prefactor     1.3044        .17799        .23549E-03   -.83175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08793e-10
Minuit parameter uncertainties:
  1  19.8972
  2  14.9728
  3  5.44535
  4  6.81981e-06
  5  26.7817
  6  0.000152826
  7  12.871
  8  1.02284e-05
  9  9.12515
  10  3.06962
  11  9.12691e-06
  12  8.57334
  13  9.18826e-07
  14  7.32585e-06
  15  18.9506
  16  2.24704e-05
  17  35.2857
  18  0.000539808
  19  0.2542
  20  0.178069
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.301e+01  9.125e+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.304e+00  1.781e-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:  4.614e-01  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.02
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 9.69e-06

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): 0
logL (Free Index) = 10105.5193069
delta logL = 0.609432922276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10105.519192
delta logL = 0.609547884185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.166       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7524       1.0000          .0000       10.000    
     3 'Normalizat'    .48869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2928       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=   10105.52     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.180        434.01        .22872E-02    .41504E-04
   2  Index         1.7528        5.6260        .27443       -.91044E-05
   3  Normalizat    .48864        .15262        .11675        .57244E-03
   4  Prefactor     1.2929        .68142E-01    .53475E-01    .10383E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1797
  Index      = 1.75277
  Normalizat = 0.488638
  Prefactor  = 1.29286
 **********
 **   18 **HESSE 
 **********

 FCN=   10105.52     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.180        14.047        .91488E-04   -1.4832    
   2  Index         1.7528        .52696        .97629E-02   -.70686    
   3  Normalizat    .48864        .24339        .51819E-03   -1.1294    
   4  Prefactor     1.2929        .17524        .23638E-03   -.83520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22072e-10
Minuit parameter uncertainties:
  1  14.0492
  2  0.528665
  3  0.243919
  4  0.175319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88245': 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): 0
logL (Free Index) = 10105.5191912
delta logL = 0.609548661218

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.918e+01  1.405e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.753e+00  5.287e-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:  1.293e+00  1.753e-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:  4.886e-01  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.21
Ra Dec: 209.859 2.042
Photon Index (Free Index): 1.75 +/- 0.53
Photon Flux (Free Index): 2.22e-08 +/- 2.19e-08
Energy Flux (Free Index): 3.07e-05 +/- 3.76e-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/88245/cmap_HighResolution_306720001_306979201_4FGL_J1359.4+0202_daily_bin260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='3.07e-05', photon_flux_error='2.90e-08', dlogl='6.10e-01', energy_flux='1.38e-05', photon_flux2='2.22e-08', job_status='DONE', time_completed='2021-09-08 19:26:15.355689', photon_index_error2='0.53', photon_index2='1.75', ts='5.02', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='3.76e-05', EG='0.46', time_epoch_completed='1631154375.36', return_code='0', job_id='88245', GAL2='1.29', EG2='0.49', return_code2='0', energy_flux_error='9.69e-06', photon_flux_error2='2.19e-08', ts2='6.21', photon_index='2.39' WHERE bin_id='260' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 88245: <4FGL_J1359.4+0202_daily_bin260> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin260 209.859 2.0424 306720001 306979201 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 :                                   701.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            944 sec.

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

