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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin266
RA = 209.859, Dec = 2.0424
tmin = 308275201, tmax = 308534401
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='88255', job_status='RUN', time_executed='2021-09-08 19:12:39.497254', time_epoch_executed='1631153559.5' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='266'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88255/ft1_4FGL_J1359.4+0202_daily_bin266.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88255/ft2_4FGL_J1359.4+0202_daily_bin266.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88255/ft1_4FGL_J1359.4+0202_daily_bin266.fits outfile=/scratch/kocevski/88255/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin266.fits ra=209.859 dec=2.0424 rad=12.0 tmin=308275201.0 tmax=308534401.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.38
user 3.16
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88255/ft1_filtered_4FGL_J1359.4+0202_daily_bin266.fits evtable="EVENTS" scfile=/scratch/kocevski/88255/ft2_4FGL_J1359.4+0202_daily_bin266.fits sctable="SC_DATA" expcube=/scratch/kocevski/88255/ltcube_308275201_308534401_4FGL_J1359.4+0202_daily_bin266.fits outfile=/scratch/kocevski/88255/expmap_308275201_308534401_4FGL_J1359.4+0202_daily_bin266.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/88255/ltcube_308275201_308534401_4FGL_J1359.4+0202_daily_bin266.fits
.....................!
real 191.18
user 186.58
sys 4.17

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/88255/ft1_filtered_4FGL_J1359.4+0202_daily_bin266.fits scfile=/scratch/kocevski/88255/ft2_4FGL_J1359.4+0202_daily_bin266.fits outfile=/scratch/kocevski/88255/cmap_308275201_308534401_4FGL_J1359.4+0202_daily_bin266.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88255/ft1_filtered_4FGL_J1359.4+0202_daily_bin266.fits scfile=/scratch/kocevski/88255/ft2_4FGL_J1359.4+0202_daily_bin266.fits outfile=/scratch/kocevski/88255/cmap_HighResolution_308275201_308534401_4FGL_J1359.4+0202_daily_bin266.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/88255/ft1_filtered_4FGL_J1359.4+0202_daily_bin266.fits evtable="EVENTS" scfile=/scratch/kocevski/88255/ft2_4FGL_J1359.4+0202_daily_bin266.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88255/Model_4FGL_J1359.4+0202_daily_bin266.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/88255/ft1_filtered_4FGL_J1359.4+0202_daily_bin266.fits.....................!
real 49.82
user 48.36
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.820       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.716       1.0000         .10000E-03   10000.    
     3 'norm      '    32.366       1.0000         .10000E-03   10000.    
     4 'Prefactor '    104.25       1.0000         .10000E-03   10000.    
     5 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5266       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.378       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1736       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.5313       1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.127       1.0000         .10000E-03   10000.    
    15 'norm      '    .10883E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    76.803       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0420       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90356       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=   6144.260     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     2006 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.821        21.845        .17892E-05   -.31845E-04
   2  Prefactor     11.720        12.712        .12063E-05   -.88590E-04
   3  norm          32.368        3.8538       -.34525E-07   -.75634E-04
   4  Prefactor     104.27        59.958        .16730E-04   -.28624E-04
   5  norm          .10000E-03    30.147       -.11786E-04** at limit **
   6  Prefactor     6.5316        5.9052        .47892E-05   -.49620E-03
   7  Prefactor     .10000E-03    11.300        .37582E-05** at limit **
   8  Prefactor     .10000E-03    2.8926        .15022E-06** at limit **
   9  Prefactor     21.394        16.108        .59930E-05   -.20009E-03
  10  norm          3.1736        2.6646        .51425E-06   -.41234E-03
  11  Prefactor     .10000E-03    22.930        .94603E-05** at limit **
  12  norm          8.5269        11.105        .41896E-06   -.50250E-04
  13  norm          .10000E-03    4.1779        .12407E-06** at limit **
  14  Prefactor     21.137        30.308        .14914E-04   -.10576E-03
  15  norm          .10000E-03    26.163        .70093E-05** at limit **
  16  Prefactor     76.831        82.805        .29981E-04   -.33823E-04
  17  Prefactor     .10000E-03    18.634       -.24613E-05** at limit **
  18  norm          .10000E-03    13.710       -.61353E-05** at limit **
  19  Normalizat    1.0408        .24349       -.12441E-04    .13969E-03
  20  Prefactor     .90434        .15297       -.23077E-06   -.47457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.821
  Prefactor  = 11.7198
  norm       = 32.3679
  Prefactor  = 104.272
  norm       = 0.0001
  Prefactor  = 6.53159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.394
  norm       = 3.17361
  Prefactor  = 0.0001
  norm       = 8.52693
  norm       = 0.0001
  Prefactor  = 21.1374
  norm       = 0.0001
  Prefactor  = 76.831
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.0408
  Prefactor  = 0.904343
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.260     FROM HESSE     STATUS=OK           291 CALLS     2297 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.821        21.854        .92323E-04   -1.4840    
   2  Prefactor     11.720        12.721        .11704E-03   -1.5023    
   3  norm          32.368        3.8605        .50951E-04   -1.4569    
   4  Prefactor     104.27        60.049        .19691E-03   -1.3662    
   5  norm          .10000E-03    30.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5316        5.8852        .15709E-03   -1.5197    
   7  Prefactor     .10000E-03    11.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9272        .13015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.394        16.111        .86629E-04   -1.4783    
  10  norm          3.1736        2.6562        .11285E-03   -1.5352    
  11  Prefactor     .10000E-03    23.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.5269        11.121        .13724E-03   -1.5124    
  13  norm          .10000E-03    4.1905        .15646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.137        30.405        .87141E-04   -1.4788    
  15  norm          .10000E-03    26.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     76.831        82.883        .45820E-04   -1.3953    
  17  Prefactor     .10000E-03    18.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0408        .29104        .31506E-03   -.91676    
  20  Prefactor     .90434        .18484        .22962E-03   -.95990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48957e-09
Minuit parameter uncertainties:
  1  21.8637
  2  12.7244
  3  3.86058
  4  60.0837
  5  0.000155792
  6  5.88576
  7  1.63476e-05
  8  8.79754e-08
  9  16.114
  10  2.6563
  11  0.000103851
  12  11.1233
  13  1.42809e-05
  14  30.4277
  15  0.000216287
  16  83.0077
  17  1.60585e-05
  18  3.0811e-05
  19  0.291483
  20  0.184966
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.139e+01  1.611e+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.043e-01  1.850e-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.041e+00  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.60
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.80e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.71e-05

TS (Fixed Index): 3.60
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 1.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88255/likelihoodResults_308275201_308534401_4FGL_J1359.4+0202_daily_bin266.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): 0
logL (Free Index) = 6143.39584756
delta logL = 0.863728522198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6143.37328267
delta logL = 0.886293420523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7800       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3759       1.0000          .0000       10.000    
     3 'Normalizat'    .95232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94430       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=   6143.373     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      254 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7800        54.873        .41765E-02    .23276E-03
   2  Index         3.3760        2.5378        .95157E-01    .16619E-03
   3  Normalizat    .95227        .89359E-01    .73981E-01    .17377E-04
   4  Prefactor     .94432        .57342E-01    .45567E-01    .40062E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.77999
  Index      = 3.37597
  Normalizat = 0.952271
  Prefactor  = 0.944321
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.373     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7800        31.949        .97403E-04   -1.5227    
   2  Index         3.3760        2.2538        .37085E-02   -.33081    
   3  Normalizat    .95227        .28941        .32737E-03   -.94647    
   4  Prefactor     .94432        .19438        .22520E-03   -.94609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13752e-07
Minuit parameter uncertainties:
  1  27.2005
  2  2.34928
  3  0.289885
  4  0.194528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88255': 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) = 6143.37328262
delta logL = 0.886293470854

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  5.780e+00  2.720e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.376e+00  2.349e+00  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.443e-01  1.945e-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:  9.523e-01  2.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.53
Ra Dec: 209.859 2.042
Photon Index (Free Index): 3.38 +/- 2.35
Photon Flux (Free Index): 1.34e-07 +/- 8.70e-08
Energy Flux (Free Index): 2.32e-05 +/- 1.57e-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/88255/cmap_HighResolution_308275201_308534401_4FGL_J1359.4+0202_daily_bin266.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', photon_flux='6.80e-08', energy_flux2='2.32e-05', photon_flux_error='5.12e-08', dlogl='8.86e-01', energy_flux='2.27e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-08 19:21:52.771322', photon_index_error2='2.35', photon_index2='3.38', ts='3.60', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='1.57e-05', EG='1.04', time_epoch_completed='1631154112.77', return_code='0', job_id='88255', GAL2='0.94', EG2='0.95', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='8.70e-08', ts2='5.53', photon_index='2.39' WHERE bin_id='266' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:21:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 88255: <4FGL_J1359.4+0202_daily_bin266> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin266 209.859 2.0424 308275201 308534401 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 :                                   551.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            679 sec.

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

