/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 0 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 = 7632
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1165
RA = 359.755, Dec = 39.3669
tmin = 541296001, tmax = 541555201
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='239020', job_status='RUN', time_executed='2021-09-30 11:50:50.578273', time_epoch_executed='1633027850.58' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/239020

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/239020/ft1_4FGL_J2359.0+3922_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/239020/ft2_4FGL_J2359.0+3922_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/239020/ft1_4FGL_J2359.0+3922_daily_bin1165.fits outfile=/scratch/kocevski/239020/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1165.fits ra=359.755 dec=39.3669 rad=12.0 tmin=541296001.0 tmax=541555201.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.75
user 3.50
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/239020/ft2_4FGL_J2359.0+3922_daily_bin1165.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/239020/ft2_4FGL_J2359.0+3922_daily_bin1165.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/239020/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1165.fits evtable="EVENTS" outfile="/scratch/kocevski/239020/ft1_filtered_4FGL_J2359.0+3922_daily_bin1165.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/239020/ft1_filtered_4FGL_J2359.0+3922_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/239020/ft2_4FGL_J2359.0+3922_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/239020/ltcube_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.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/239020/ft2_4FGL_J2359.0+3922_daily_bin1165.fits
.....................!
real 11.79
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/239020/ft1_filtered_4FGL_J2359.0+3922_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/239020/ft2_4FGL_J2359.0+3922_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/239020/ltcube_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.fits outfile=/scratch/kocevski/239020/expmap_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.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/239020/ltcube_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.fits
.....................!
real 190.35
user 185.35
sys 4.69

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 160 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2359.0+3922 @ 359.755 39.3669

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/239020/ft1_filtered_4FGL_J2359.0+3922_daily_bin1165.fits scfile=/scratch/kocevski/239020/ft2_4FGL_J2359.0+3922_daily_bin1165.fits outfile=/scratch/kocevski/239020/cmap_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.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=359.755 yref=39.3669 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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/239020/ft1_filtered_4FGL_J2359.0+3922_daily_bin1165.fits scfile=/scratch/kocevski/239020/ft2_4FGL_J2359.0+3922_daily_bin1165.fits outfile=/scratch/kocevski/239020/cmap_HighResolution_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.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=359.755 yref=39.3669 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/239020/ft1_filtered_4FGL_J2359.0+3922_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/239020/ft2_4FGL_J2359.0+3922_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/239020/Model_4FGL_J2359.0+3922_daily_bin1165.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/239020/ft1_filtered_4FGL_J2359.0+3922_daily_bin1165.fits.....................!
real 98.03
user 96.67
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/239020/ft1_filtered_4FGL_J2359.0+3922_daily_bin1165.fits', '/scratch/kocevski/239020/ft2_4FGL_J2359.0+3922_daily_bin1165.fits', expMap='/scratch/kocevski/239020/expmap_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.fits', expCube='/scratch/kocevski/239020/ltcube_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/239020/Model_4FGL_J2359.0+3922_daily_bin1165.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.0+3922'

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.197e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/239020/ft1_filtered_4FGL_J2359.0+3922_daily_bin1165.fits
Spacecraft file(s): /scratch/kocevski/239020/ft2_4FGL_J2359.0+3922_daily_bin1165.fits
Exposure map: /scratch/kocevski/239020/expmap_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.fits
Exposure cube: /scratch/kocevski/239020/ltcube_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/239020/Model_4FGL_J2359.0+3922_daily_bin1165.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) = 8984.78522044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.439       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.715       1.0000         .10000E-03   10000.    
     3 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10249E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0878       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1685       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .78866       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .35050       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2002       1.0000         .10000E-03   10000.    
    19 'norm      '    1.9208       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.093       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12659E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.4212       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0072       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8984.726     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3103 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.434        26.587       -.16978E-05    .93083E-05
   2  Prefactor     16.713        18.655        .56447E-06    .16934E-04
   3  norm          .10000E-03    11.370        .52873E-05** at limit **
   4  Prefactor     .10000E-03    10.205        .69257E-05** at limit **
   5  norm          .10000E-03    1.0877        .15023E-07** at limit **
   6  Prefactor     .10000E-03    3.9460       -.19281E-07** at limit **
   7  Prefactor     6.0874        3.0162        .20378E-07    .17350E-03
   8  Prefactor     .10000E-03    12.204       -.88951E-05** at limit **
   9  Prefactor     .10000E-03    6.3851        .32550E-08** at limit **
  10  Prefactor     .10000E-03    34.993       -.15704E-04** at limit **
  11  norm          3.1684        1.8218       -.38580E-08    .14618E-04
  12  Prefactor     .10000E-03    2.3951       -.28103E-07** at limit **
  13  Prefactor     .10000E-03    16.377        .23207E-05** at limit **
  14  norm          .78866        1.2165       -.33444E-06   -.18598E-02
  15  Prefactor     .29891        4.9958        .85647E-06   -.88233E-03
  16  norm          .10000E-03    3.1756        .67208E-07** at limit **
  17  norm          .10000E-03    9.9451       -.57709E-05** at limit **
  18  Prefactor     3.2047        13.575       -.87299E-06   -.14032E-03
  19  norm          1.9211        2.1652       -.17682E-06   -.67419E-03
  20  Prefactor     15.092        14.491       -.10881E-06   -.27415E-04
  21  Prefactor     .10000E-03    42.745       -.28300E-05** at limit **
  22  Prefactor     .10000E-03    53.817        .30161E-04** at limit **
  23  Prefactor     .10000E-03    94.428       -.22385E-04** at limit **
  24  Prefactor     8.4153        7.1683       -.39454E-06   -.32885E-03
  25  Normalizat    1.0070        .18699       -.10206E-07   -.17726E-03
  26  Prefactor     .99567        .87448E-01    .13980E-06   -.22131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4338
  Prefactor  = 16.7134
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.08735
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.16836
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.788661
  Prefactor  = 0.298908
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.20468
  norm       = 1.92112
  Prefactor  = 15.0923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.41528
  Normalizat = 1.00702
  Prefactor  = 0.99567
 **********
 **   18 **HESSE 
 **********

 FCN=   8984.726     FROM HESSE     STATUS=OK           454 CALLS     3557 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.434        26.562        .84557E-04   -1.4760    
   2  Prefactor     16.713        18.640        .97963E-04   -1.4890    
   3  norm          .10000E-03    11.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5651        .19206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0874        3.0155        .11095E-03   -1.5214    
   8  Prefactor     .10000E-03    12.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1684        1.8218        .94482E-04   -1.5352    
  12  Prefactor     .10000E-03    2.4290        .14324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .78866        1.1963        .12561E-03   -1.5530    
  15  Prefactor     .29891        32.809        .40473E-02   -1.5599    
  16  norm          .10000E-03    3.2112        .16398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2047        13.441        .22649E-03   -1.5350    
  19  norm          1.9211        2.1451        .14259E-03   -1.5431    
  20  Prefactor     15.092        14.493        .10310E-03   -1.4931    
  21  Prefactor     .10000E-03    42.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    53.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    94.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.4153        7.1568        .13814E-03   -1.5128    
  25  Normalizat    1.0070        .21593        .34264E-03   -.92796    
  26  Prefactor     .99567        .10196        .16381E-03   -.92874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9248e-09
Minuit parameter uncertainties:
  1  26.5756
  2  18.6461
  3  6.42623e-06
  4  9.20941e-05
  5  4.28088e-06
  6  3.91368e-06
  7  3.01559
  8  1.73883e-05
  9  7.74006e-07
  10  5.67545e-05
  11  1.82186
  12  1.5944e-07
  13  2.02527e-06
  14  1.19635
  15  6.26564
  16  9.02415e-06
  17  3.84017e-05
  18  13.1308
  19  2.14522
  20  14.4963
  21  4.2998e-06
  22  0.000192489
  23  9.80058e-05
  24  7.15757
  25  0.216122
  26  0.101976
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  8.415e+00  7.158e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  9.957e-01  1.020e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.007e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.30e-05

TS (Fixed Index): 2.16
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/239020/likelihoodResults_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.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) = 8984.47375734
delta logL = 0.251880273176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8984.46822905
delta logL = 0.257408564994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3292       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9825       1.0000          .0000       10.000    
     3 'Normalizat'    .97054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0063       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8984.468     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      258 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3304        46.039        .55460E-02    .68379E-03
   2  Index         2.9826        2.6935        .10060        .25920E-03
   3  Normalizat    .97055        .70045E-01    .78676E-01    .78791E-04
   4  Prefactor     1.0063        .30415E-01    .43927E-01    .12042E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33041
  Index      = 2.98256
  Normalizat = 0.97055
  Prefactor  = 1.00631
 **********
 **   18 **HESSE 
 **********

 FCN=   8984.468     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      289 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3304        80.940        .11731E-03   -1.5343    
   2  Index         2.9826        6.4747        .54224E-02   -.41532    
   3  Normalizat    .97055        .26299        .34821E-03   -.94024    
   4  Prefactor     1.0063        .11479        .16302E-03   -.92519    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15305e-09
Minuit parameter uncertainties:
  1  32.8863
  2  4.75835
  3  0.263343
  4  0.11482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/239020': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8984.46822871
delta logL = 0.257408895781

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  3.330e+00  3.289e+01  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.983e+00  4.758e+00  0.000e+00  1.000e+01 (-1.000e+00)
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.006e+00  1.148e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  9.706e-01  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 359.755 39.367
Photon Index (Free Index): 2.98 +/- 4.76
Photon Flux (Free Index): 6.84e-08 +/- 8.42e-08
Energy Flux (Free Index): 1.38e-05 +/- 2.16e-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/239020/cmap_HighResolution_541296001_541555201_4FGL_J2359.0+3922_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='1.38e-05', photon_flux_error='3.68e-08', dlogl='2.57e-01', energy_flux='1.53e-05', photon_flux2='6.84e-08', job_status='DONE', time_completed='2021-09-30 12:06:15.375922', photon_index_error2='4.76', photon_index2='2.98', ts='2.16', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='2.16e-05', EG='1.01', time_epoch_completed='1633028775.38', return_code='0', job_id='239020', GAL2='1.01', EG2='0.97', return_code2='102', energy_flux_error='1.30e-05', photon_flux_error2='8.42e-08', ts2='2.73', photon_index='2.35' WHERE bin_id='1165' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:06:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 239020: <4FGL_J2359.0+3922_daily_bin1165> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1165> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 11:50:39 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:50:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 11:50:41 2021
Terminated at Thu Sep 30 12:06:16 2021
Results reported at Thu Sep 30 12:06:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1165 359.755 39.3669 541296001 541555201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2359.0+3922 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   918.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

