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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin233
RA = 209.859, Dec = 2.0424
tmin = 299721601, tmax = 299980801
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='88200', job_status='RUN', time_executed='2021-09-08 19:14:36.672133', time_epoch_executed='1631153676.67' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88200

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88200/ft1_4FGL_J1359.4+0202_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88200/ft2_4FGL_J1359.4+0202_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88200/ft1_4FGL_J1359.4+0202_daily_bin233.fits outfile=/scratch/kocevski/88200/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin233.fits ra=209.859 dec=2.0424 rad=12.0 tmin=299721601.0 tmax=299980801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.35
user 3.16
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88200/ft1_filtered_4FGL_J1359.4+0202_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/88200/ft2_4FGL_J1359.4+0202_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/88200/ltcube_299721601_299980801_4FGL_J1359.4+0202_daily_bin233.fits outfile=/scratch/kocevski/88200/expmap_299721601_299980801_4FGL_J1359.4+0202_daily_bin233.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/88200/ltcube_299721601_299980801_4FGL_J1359.4+0202_daily_bin233.fits
.....................!
real 189.91
user 184.87
sys 4.74

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/88200/ft1_filtered_4FGL_J1359.4+0202_daily_bin233.fits scfile=/scratch/kocevski/88200/ft2_4FGL_J1359.4+0202_daily_bin233.fits outfile=/scratch/kocevski/88200/cmap_299721601_299980801_4FGL_J1359.4+0202_daily_bin233.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.53
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.587       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.161       1.0000         .10000E-03   10000.    
     3 'norm      '    17.563       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.071       1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3758       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14777       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.049       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6086       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.453       1.0000         .10000E-03   10000.    
    12 'norm      '    11.446       1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.686       1.0000         .10000E-03   10000.    
    15 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    102.98       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.950       1.0000         .10000E-03   10000.    
    18 'norm      '    .10552E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0835       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93018       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6306.369     FROM MIGRAD    STATUS=CONVERGED     83 CALLS     1749 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.588        2.1949       -.33325E-07    .54995E-03
   2  Prefactor     16.160        1.0205       -.97350E-08   -.18361E-02
   3  norm          17.563        2.9022       -.17607E-06    .25443E-04
   4  Prefactor     34.061        1.1936       -.39355E-07    .58189E-03
   5  norm          .10000E-03    22.040        .36926E-05** at limit **
   6  Prefactor     3.3760        4.5165        .13069E-05    .61894E-05
   7  Prefactor     .10014E-03    457.74       -.15093E-04** at limit **
   8  Prefactor     .10000E-03    1.2493        .35102E-06** at limit **
   9  Prefactor     27.054        16.530        .24166E-06    .67927E-03
  10  norm          4.6085        2.7480       -.13892E-06    .20346E-04
  11  Prefactor     15.462        1.4650       -.53228E-08    .79024E-02
  12  norm          11.446        1.0163       -.10980E-07    .36141E-03
  13  norm          .10000E-03    5.3004        .12304E-06** at limit **
  14  Prefactor     21.661        1.7409       -.99295E-07   -.19274E-02
  15  norm          .10000E-03    8.5798        .13120E-05** at limit **
  16  Prefactor     102.98        1.0635        .89128E-08    .10592E-03
  17  Prefactor     18.947        1.1301       -.25038E-07    .38219E-03
  18  norm          .10000E-03    9.6417       -.17459E-05** at limit **
  19  Normalizat    1.0835        .26389        .34536E-05   -.84611E-05
  20  Prefactor     .93020        .18052       -.12385E-05   -.73643E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5878
  Prefactor  = 16.1599
  norm       = 17.5628
  Prefactor  = 34.061
  norm       = 0.0001
  Prefactor  = 3.37603
  Prefactor  = 0.000100141
  Prefactor  = 0.0001
  Prefactor  = 27.0539
  norm       = 4.60849
  Prefactor  = 15.4622
  norm       = 11.4462
  norm       = 0.0001
  Prefactor  = 21.6615
  norm       = 0.0001
  Prefactor  = 102.983
  Prefactor  = 18.947
  norm       = 0.0001
  Normalizat = 1.08352
  Prefactor  = 0.930203
 **********
 **   18 **HESSE 
 **********

 FCN=   6306.369     FROM HESSE     STATUS=OK           345 CALLS     2094 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.588        20.505        .22069E-02   -1.4800    
   2  Prefactor     16.160        12.498        .24907E-02   -1.4904    
   3  norm          17.563        2.9091        .23893E-02   -1.4870    
   4  Prefactor     34.061        38.936        .17163E-02   -1.4540    
   5  norm          .10000E-03    21.998        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3760        4.5358        .55057E-02   -1.5340    
   7  Prefactor     .10014E-03    22.658        .11609       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2461        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.054        17.488        .19257E-02   -1.4667    
  10  norm          4.6085        2.7565        .46873E-02   -1.5279    
  11  Prefactor     15.462        20.051        .25472E-02   -1.4921    
  12  norm          11.446        11.079        .29603E-02   -1.5031    
  13  norm          .10000E-03    5.2588        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.661        27.995        .21503E-02   -1.4777    
  15  norm          .10000E-03    8.5801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     102.98        81.200        .99056E-03   -1.3675    
  17  Prefactor     18.947        30.351        .23002E-02   -1.4837    
  18  norm          .10000E-03    9.6362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0835        .22955        .68066E-01   -.90283    
  20  Prefactor     .93020        .15126        .45389E-01   -.95094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82845e-07
Minuit parameter uncertainties:
  1  20.5117
  2  12.4998
  3  2.90909
  4  38.9649
  5  0.000101262
  6  4.53623
  7  0.00358031
  8  9.57419e-07
  9  17.4915
  10  2.75654
  11  20.06
  12  11.0812
  13  3.08959e-06
  14  28.0115
  15  1.14541e-05
  16  81.2876
  17  30.3757
  18  1.61802e-05
  19  0.229764
  20  0.151327
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.705e+01  1.749e+01  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.302e-01  1.513e-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.084e+00  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.24
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 8.59e-08 +/- 5.55e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 1.86e-05

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) = 6305.87106627
delta logL = 0.498097564583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6305.85833473
delta logL = 0.510829102706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9038       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0941       1.0000          .0000       10.000    
     3 'Normalizat'    1.0194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96303       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6305.858     FROM MIGRAD    STATUS=FAILED       102 CALLS      301 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8944        127.43        .61964E-03   -.56583E-04
   2  Index         3.0946        3.3121        .37743E-02    .67508E-03
   3  Normalizat    1.0194        .31229        .30909E-03    .40055E-04
   4  Prefactor     .96303        .21629        .22240E-03    .61956E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6305.858     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      387 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8944        127.43        .19643E-03   -.56583E-04
   2  Index         3.0946        3.3121        .63487E-03    .67508E-03
   3  Normalizat    1.0194        .31229        .27495E-03    .40055E-04
   4  Prefactor     .96303        .21629        .17472E-03    .61956E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6305.858     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      420 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8944        17.117        .24786E-04   -.64674E-04
   2  Index         3.0946        .88236        .75487E-03   -.19142E-04
   3  Normalizat    1.0194        .26623        .12363E-04    .40092E-04
   4  Prefactor     .96303        .18372        .88959E-05    .61853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.89438
  Index      = 3.09464
  Normalizat = 1.0194
  Prefactor  = 0.963027
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.858     FROM HESSE     STATUS=OK            23 CALLS      443 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8944        15.789        .99143E-06   -1.5079    
   2  Index         3.0946        .81447        .30195E-04   -.39095    
   3  Normalizat    1.0194        .26553        .24727E-05   -.92383    
   4  Prefactor     .96303        .18326        .17792E-05   -.93972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54927e-12
Minuit parameter uncertainties:
  1  15.7956
  2  0.818742
  3  0.265873
  4  0.183373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88200': 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) = 6305.85833448
delta logL = 0.510829357856

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  9.894e+00  1.580e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.095e+00  8.187e-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.630e-01  1.834e-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.019e+00  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.36
Ra Dec: 209.859 2.042
Photon Index (Free Index): 3.09 +/- 0.82
Photon Flux (Free Index): 1.27e-07 +/- 7.19e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.35e-05

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/88200/cmap_HighResolution_299721601_299980801_4FGL_J1359.4+0202_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.59e-08', energy_flux2='2.43e-05', photon_flux_error='5.55e-08', dlogl='5.11e-01', energy_flux='2.87e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-08 19:23:03.937346', photon_index_error2='0.82', photon_index2='3.09', ts='4.24', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='1.08', time_epoch_completed='1631154183.94', return_code='0', job_id='88200', GAL2='0.96', EG2='1.02', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='7.19e-08', ts2='5.36', photon_index='2.39' WHERE bin_id='233' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:23:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 88200: <4FGL_J1359.4+0202_daily_bin233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin233 209.859 2.0424 299721601 299980801 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 :                                   506.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            756 sec.

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

