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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin405
RA = 209.859, Dec = 2.0424
tmin = 344304001, tmax = 344563201
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='89527', job_status='RUN', time_executed='2021-09-08 19:19:29.838011', time_epoch_executed='1631153969.84' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89527/ft1_4FGL_J1359.4+0202_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89527/ft2_4FGL_J1359.4+0202_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89527/ft1_4FGL_J1359.4+0202_daily_bin405.fits outfile=/scratch/kocevski/89527/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin405.fits ra=209.859 dec=2.0424 rad=12.0 tmin=344304001.0 tmax=344563201.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.40
user 3.18
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89527/ft1_filtered_4FGL_J1359.4+0202_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/89527/ft2_4FGL_J1359.4+0202_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/89527/ltcube_344304001_344563201_4FGL_J1359.4+0202_daily_bin405.fits outfile=/scratch/kocevski/89527/expmap_344304001_344563201_4FGL_J1359.4+0202_daily_bin405.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/89527/ltcube_344304001_344563201_4FGL_J1359.4+0202_daily_bin405.fits
.....................!
real 191.28
user 185.92
sys 4.97

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/89527/ft1_filtered_4FGL_J1359.4+0202_daily_bin405.fits scfile=/scratch/kocevski/89527/ft2_4FGL_J1359.4+0202_daily_bin405.fits outfile=/scratch/kocevski/89527/cmap_344304001_344563201_4FGL_J1359.4+0202_daily_bin405.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89527/ft1_filtered_4FGL_J1359.4+0202_daily_bin405.fits scfile=/scratch/kocevski/89527/ft2_4FGL_J1359.4+0202_daily_bin405.fits outfile=/scratch/kocevski/89527/cmap_HighResolution_344304001_344563201_4FGL_J1359.4+0202_daily_bin405.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.036       1.0000         .10000E-03   10000.    
     3 'norm      '    .99029E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1069       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5355       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.045       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3684       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.577       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.592       1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.772       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.560       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5761       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .74761       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=   7781.969     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2020 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.120        12.982       -.15778E-06   -.52772E-05
   2  Prefactor     12.036        9.3471       -.78014E-07   -.12472E-04
   3  norm          .96100E-01    .51846       -.28718E-06   -.18735E-03
   4  Prefactor     .10000E-03    21.002        .26921E-05** at limit **
   5  norm          .10000E-03    6.8876        .29040E-06** at limit **
   6  Prefactor     .10000E-03    1.4079       -.10128E-07** at limit **
   7  Prefactor     6.1066        20.320       -.71740E-06   -.28262E-04
   8  Prefactor     5.5354        3.4762        .29008E-06    .14553E-02
   9  Prefactor     32.044        15.490       -.14948E-06    .23071E-04
  10  norm          2.3685        2.2867       -.13981E-06   -.44640E-03
  11  Prefactor     .10000E-03    13.197       -.18153E-05** at limit **
  12  norm          .10000E-03    8.7977        .47016E-05** at limit **
  13  norm          17.576        9.6532       -.30287E-07   -.12917E-05
  14  Prefactor     .10000E-03    8.4063       -.42411E-05** at limit **
  15  norm          19.591        18.731       -.36299E-06    .13648E-04
  16  Prefactor     62.769        56.910       -.26102E-05    .52751E-05
  17  Prefactor     .10000E-03    28.397       -.14735E-05** at limit **
  18  norm          15.554        19.331       -.33167E-05    .93499E-05
  19  Normalizat    1.5761        .20058        .36589E-06    .83336E-04
  20  Prefactor     .74763        .13319        .29799E-06    .50169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.12
  Prefactor  = 12.0356
  norm       = 0.0961004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.10664
  Prefactor  = 5.5354
  Prefactor  = 32.0443
  norm       = 2.36853
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.5758
  Prefactor  = 0.0001
  norm       = 19.5906
  Prefactor  = 62.7691
  Prefactor  = 0.0001
  norm       = 15.5537
  Normalizat = 1.57605
  Prefactor  = 0.747626
 **********
 **   18 **HESSE 
 **********

 FCN=   7781.969     FROM HESSE     STATUS=OK           295 CALLS     2315 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.120        12.984        .11058E-03   -1.4983    
   2  Prefactor     12.036        9.3503        .11547E-03   -1.5014    
   3  norm          .96100E-01    2.4464        .12199E-02   -1.5646    
   4  Prefactor     .10000E-03    20.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.8877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4198        .10219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1066        20.321        .16246E-03   -1.5214    
   8  Prefactor     5.5354        3.5834        .65321E-03   -1.5237    
   9  Prefactor     32.044        15.502        .70783E-04   -1.4575    
  10  norm          2.3685        2.2847        .12532E-03   -1.5400    
  11  Prefactor     .10000E-03    13.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.7093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.576        9.6424        .95533E-04   -1.4869    
  14  Prefactor     .10000E-03    8.3160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.591        18.728        .90489E-04   -1.4822    
  16  Prefactor     62.769        56.852        .50648E-04   -1.4122    
  17  Prefactor     .10000E-03    28.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.554        19.218        .10154E-03   -1.4919    
  19  Normalizat    1.5761        .24047        .26076E-03   -.75663    
  20  Prefactor     .74763        .15883        .24381E-03   -1.0169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0775e-08
Minuit parameter uncertainties:
  1  12.9863
  2  9.3514
  3  0.969275
  4  6.95348e-06
  5  1.29172e-07
  6  1.50788e-06
  7  20.3438
  8  3.58354
  9  15.5038
  10  2.28479
  11  1.2968e-06
  12  1.826e-05
  13  9.64324
  14  3.26175e-06
  15  18.7338
  16  56.901
  17  0.000203453
  18  19.2257
  19  0.240649
  20  0.158924
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  3.204e+01  1.550e+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:  7.476e-01  1.589e-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.576e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.71
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 4.92e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 1.65e-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) = 7781.53632346
delta logL = 0.432854817464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7781.53441712
delta logL = 0.434761148757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.131       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8254       1.0000          .0000       10.000    
     3 'Normalizat'    1.5258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76985       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=   7781.534     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      296 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.134        19.089        .91570E-04   -.56365E-04
   2  Index         2.8253        .57954        .39128E-02    .76624E-03
   3  Normalizat    1.5260        .24514        .26406E-03    .10719E-03
   4  Prefactor     .76962        .16140        .24063E-03    .25805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1336
  Index      = 2.82533
  Normalizat = 1.52605
  Prefactor  = 0.769615
 **********
 **   18 **HESSE 
 **********

 FCN=   7781.534     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.134        16.707        .36628E-05   -1.4833    
   2  Index         2.8253        .50692        .78255E-03   -.44997    
   3  Normalizat    1.5260        .24429        .52811E-04   -.77049    
   4  Prefactor     .76962        .16106        .96252E-05   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.83598e-11
Minuit parameter uncertainties:
  1  16.7109
  2  0.507998
  3  0.244475
  4  0.161161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89527': 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) = 7781.53441582
delta logL = 0.434762454861

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.913e+01  1.671e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.825e+00  5.080e-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:  7.696e-01  1.612e-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.526e+00  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.65
Ra Dec: 209.859 2.042
Photon Index (Free Index): 2.83 +/- 0.51
Photon Flux (Free Index): 1.42e-07 +/- 7.13e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.36e-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/89527/cmap_HighResolution_344304001_344563201_4FGL_J1359.4+0202_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.13e-05', photon_flux_error='4.92e-08', dlogl='4.35e-01', energy_flux='3.40e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-09-08 19:28:58.320061', photon_index_error2='0.51', photon_index2='2.83', ts='8.71', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='1.58', time_epoch_completed='1631154538.32', return_code='0', job_id='89527', GAL2='0.77', EG2='1.53', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='7.13e-08', ts2='9.65', photon_index='2.39' WHERE bin_id='405' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:28:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 89527: <4FGL_J1359.4+0202_daily_bin405> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin405> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 19:15:20 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:15: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:15:22 2021
Terminated at Wed Sep  8 19:29:01 2021
Results reported at Wed Sep  8 19:29:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin405 209.859 2.0424 344304001 344563201 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 :                                   567.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            821 sec.

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

