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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1252
RA = 359.755, Dec = 39.3669
tmin = 563846401, tmax = 564105601
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='240364', job_status='RUN', time_executed='2021-09-30 11:57:32.785342', time_epoch_executed='1633028252.79' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240364/ft1_4FGL_J2359.0+3922_daily_bin1252.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240364/ft2_4FGL_J2359.0+3922_daily_bin1252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240364/ft1_4FGL_J2359.0+3922_daily_bin1252.fits outfile=/scratch/kocevski/240364/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1252.fits ra=359.755 dec=39.3669 rad=12.0 tmin=563846401.0 tmax=564105601.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 2.81
user 2.63
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240364/ft2_4FGL_J2359.0+3922_daily_bin1252.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/240364/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1252.fits evtable="EVENTS" outfile="/scratch/kocevski/240364/ft1_filtered_4FGL_J2359.0+3922_daily_bin1252.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240364/ft1_filtered_4FGL_J2359.0+3922_daily_bin1252.fits" evtable="EVENTS" scfile=/scratch/kocevski/240364/ft2_4FGL_J2359.0+3922_daily_bin1252.fits sctable="SC_DATA" outfile=/scratch/kocevski/240364/ltcube_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.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/240364/ft2_4FGL_J2359.0+3922_daily_bin1252.fits
.....................!
real 15.63
user 15.19
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240364/ft1_filtered_4FGL_J2359.0+3922_daily_bin1252.fits evtable="EVENTS" scfile=/scratch/kocevski/240364/ft2_4FGL_J2359.0+3922_daily_bin1252.fits sctable="SC_DATA" expcube=/scratch/kocevski/240364/ltcube_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.fits outfile=/scratch/kocevski/240364/expmap_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.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/240364/ltcube_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.fits
.....................!
real 190.24
user 185.11
sys 4.77

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/240364/ft1_filtered_4FGL_J2359.0+3922_daily_bin1252.fits scfile=/scratch/kocevski/240364/ft2_4FGL_J2359.0+3922_daily_bin1252.fits outfile=/scratch/kocevski/240364/cmap_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240364/ft1_filtered_4FGL_J2359.0+3922_daily_bin1252.fits scfile=/scratch/kocevski/240364/ft2_4FGL_J2359.0+3922_daily_bin1252.fits outfile=/scratch/kocevski/240364/cmap_HighResolution_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/240364/ft1_filtered_4FGL_J2359.0+3922_daily_bin1252.fits evtable="EVENTS" scfile=/scratch/kocevski/240364/ft2_4FGL_J2359.0+3922_daily_bin1252.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/240364/Model_4FGL_J2359.0+3922_daily_bin1252.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/240364/ft1_filtered_4FGL_J2359.0+3922_daily_bin1252.fits.....................!
real 52.52
user 50.31
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/240364/ft1_filtered_4FGL_J2359.0+3922_daily_bin1252.fits', '/scratch/kocevski/240364/ft2_4FGL_J2359.0+3922_daily_bin1252.fits', expMap='/scratch/kocevski/240364/expmap_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.fits', expCube='/scratch/kocevski/240364/ltcube_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/240364/Model_4FGL_J2359.0+3922_daily_bin1252.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/240364/ft1_filtered_4FGL_J2359.0+3922_daily_bin1252.fits
Spacecraft file(s): /scratch/kocevski/240364/ft2_4FGL_J2359.0+3922_daily_bin1252.fits
Exposure map: /scratch/kocevski/240364/expmap_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.fits
Exposure cube: /scratch/kocevski/240364/ltcube_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/240364/Model_4FGL_J2359.0+3922_daily_bin1252.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) = 3821.97080046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    87.421       1.0000         .10000E-03   10000.    
     3 'norm      '    17.925       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.450       1.0000         .10000E-03   10000.    
     5 'norm      '    .10931E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38314E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3282       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.431       1.0000         .10000E-03   10000.    
    14 'norm      '    .18353E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.253       1.0000         .10000E-03   10000.    
    16 'norm      '    .10310E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.7233       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6284       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.432       1.0000         .10000E-03   10000.    
    21 'Prefactor '    95.935       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79932       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79314       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=   3821.966     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3174 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    494.13        .14295E-04** at limit **
   2  Prefactor     87.499        60.692        .10207E-04   -.35092E-04
   3  norm          17.911        36.186        .49926E-05   -.17319E-04
   4  Prefactor     15.449        16.663       -.15994E-05   -.41874E-04
   5  norm          .10001E-03    6.4781       -.69533E-07** at limit **
   6  Prefactor     .10000E-03    8.9117        .37775E-06** at limit **
   7  Prefactor     4.3278        6.5600       -.42168E-06   -.17032E-03
   8  Prefactor     .10000E-03    18.079        .10412E-05** at limit **
   9  Prefactor     .10000E-03    45.899       -.11414E-05** at limit **
  10  Prefactor     .10000E-03    50.077        .14448E-05** at limit **
  11  norm          .10000E-03    3.5647       -.31568E-07** at limit **
  12  Prefactor     .10000E-03    8.9269       -.39767E-07** at limit **
  13  Prefactor     29.440        26.581        .35408E-05   -.16273E-04
  14  norm          .16564E-01    .75024        .12753E-06   -.42783E-03
  15  Prefactor     38.248        17.266       -.10960E-05   -.43790E-04
  16  norm          .10000E-03    4.0018        .33252E-06** at limit **
  17  norm          8.7230        10.804        .48349E-06   -.38961E-04
  18  Prefactor     .10000E-03    17.191       -.34112E-05** at limit **
  19  norm          1.6274        3.1914        .31562E-07   -.44424E-03
  20  Prefactor     32.427        29.778        .14778E-05   -.11369E-04
  21  Prefactor     95.966        96.083        .10606E-04   -.96897E-05
  22  Prefactor     .10000E-03    14.744        .78275E-07** at limit **
  23  Prefactor     .10000E-03    28.137        .13388E-08** at limit **
  24  Prefactor     .10000E-03    7.8076       -.89321E-07** at limit **
  25  Normalizat    .79951        .30914       -.36853E-05   -.69459E-04
  26  Prefactor     .79320        .12057       -.32309E-06   -.13140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100065
  Prefactor  = 87.4986
  norm       = 17.9109
  Prefactor  = 15.449
  norm       = 0.000100014
  Prefactor  = 0.000100003
  Prefactor  = 4.3278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.4402
  norm       = 0.016564
  Prefactor  = 38.2477
  norm       = 0.0001
  norm       = 8.72296
  Prefactor  = 0.0001
  norm       = 1.62739
  Prefactor  = 32.4269
  Prefactor  = 95.9656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.799506
  Prefactor  = 0.793204
 **********
 **   18 **HESSE 
 **********

 FCN=   3821.966     FROM HESSE     STATUS=OK           466 CALLS     3640 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    492.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     87.499        60.572        .42970E-04   -1.3834    
   3  norm          17.911        36.118        .94599E-04   -1.4861    
   4  Prefactor     15.449        16.650        .10190E-03   -1.4922    
   5  norm          .10001E-03    16.870        .30323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.655        .62149E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3278        6.5536        .18710E-03   -1.5292    
   8  Prefactor     .10000E-03    18.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.5820        .11399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.9287        .18042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.440        26.592        .73852E-04   -1.4622    
  14  norm          .16564E-01    16.286        .10199E-02   -1.5682    
  15  Prefactor     38.248        17.205        .64803E-04   -1.4470    
  16  norm          .10000E-03    8.0435        .23833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.7230        10.796        .13572E-03   -1.5117    
  18  Prefactor     .10000E-03    17.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6274        3.1582        .14421E-03   -1.5453    
  20  Prefactor     32.427        29.779        .70361E-04   -1.4568    
  21  Prefactor     95.966        96.013        .41037E-04   -1.3746    
  22  Prefactor     .10000E-03    14.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.8316        .16862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .79951        .35236        .37760E-03   -1.0009    
  26  Prefactor     .79320        .13963        .15745E-03   -.99979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08139e-09
Minuit parameter uncertainties:
  1  0.0114531
  2  60.6148
  3  36.1618
  4  16.6549
  5  0.000980386
  6  0.000390639
  7  6.55463
  8  3.47018e-05
  9  9.08285e-06
  10  3.00336e-06
  11  4.43144e-06
  12  1.2442e-06
  13  26.6024
  14  1.03591
  15  17.2077
  16  0.000119326
  17  10.7986
  18  6.08505e-05
  19  3.1585
  20  29.7926
  21  96.1686
  22  8.12231e-06
  23  7.76433e-06
  24  8.49679e-06
  25  0.353371
  26  0.139688
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  8.497e-06  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:  7.932e-01  1.397e-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:  7.995e-01  3.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/240364/likelihoodResults_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.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): 102
logL (Free Index) = 3821.96644143
delta logL = -0.000608312170243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3821.96583363
delta logL = -5.11259713676e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3362       1.0000          .0000       10.000    
     3 'Normalizat'    .79928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79330       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=   3821.966     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    250.10        .90712E-02** at limit **
   2  Index         2.3250        6.4719        .50000        .12074E-04
   3  Normalizat    .79951        .44101E-01    .85269E-01    .30774E-04
   4  Prefactor     .79320        .18465E-01    .43630E-01    .27035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32499
  Normalizat = 0.799508
  Prefactor  = 0.793204
 **********
 **   18 **HESSE 
 **********

 FCN=   3821.966     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      237 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    816.47        .16953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3250        8.8209        .50000       -.56451    
   3  Normalizat    .79951        .89555E-01    .37761E-03   -1.0009    
   4  Prefactor     .79320        .37585E-01    .15745E-03   -.99979    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89848e-08
Minuit parameter uncertainties:
  1  0.000210033
  2  43.5766
  3  0.0895716
  4  0.0375862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240364': 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) = 3821.96583305
delta logL = 6.65313564241e-08

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  2.100e-04  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.325e+00  4.358e+01  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:  7.932e-01  3.759e-02  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:  7.995e-01  8.957e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.755 39.367

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/240364/cmap_HighResolution_563846401_564105601_4FGL_J2359.0+3922_daily_bin1252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-30 12:07:02.959735', job_id='240364', GAL2='0.79', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1633028822.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='6.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1252' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:07:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 240364: <4FGL_J2359.0+3922_daily_bin1252> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1252> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 11:55:15 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:55:16 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:55:16 2021
Terminated at Thu Sep 30 12:07:03 2021
Results reported at Thu Sep 30 12:07:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1252 359.755 39.3669 563846401 564105601 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 :                                   567.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            708 sec.

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

