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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin435
RA = 359.755, Dec = 39.3669
tmin = 352080001, tmax = 352339201
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='235912', job_status='RUN', time_executed='2021-09-30 11:40:44.432991', time_epoch_executed='1633027244.43' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/235912

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/235912/ft1_4FGL_J2359.0+3922_daily_bin435.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/235912/ft2_4FGL_J2359.0+3922_daily_bin435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/235912/ft1_4FGL_J2359.0+3922_daily_bin435.fits outfile=/scratch/kocevski/235912/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin435.fits ra=359.755 dec=39.3669 rad=12.0 tmin=352080001.0 tmax=352339201.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.42
user 3.20
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/235912/ft2_4FGL_J2359.0+3922_daily_bin435.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/235912/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin435.fits evtable="EVENTS" outfile="/scratch/kocevski/235912/ft1_filtered_4FGL_J2359.0+3922_daily_bin435.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/235912/ft1_filtered_4FGL_J2359.0+3922_daily_bin435.fits" evtable="EVENTS" scfile=/scratch/kocevski/235912/ft2_4FGL_J2359.0+3922_daily_bin435.fits sctable="SC_DATA" outfile=/scratch/kocevski/235912/ltcube_352080001_352339201_4FGL_J2359.0+3922_daily_bin435.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/235912/ft2_4FGL_J2359.0+3922_daily_bin435.fits
.....................!
real 12.36
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/235912/ft1_filtered_4FGL_J2359.0+3922_daily_bin435.fits evtable="EVENTS" scfile=/scratch/kocevski/235912/ft2_4FGL_J2359.0+3922_daily_bin435.fits sctable="SC_DATA" expcube=/scratch/kocevski/235912/ltcube_352080001_352339201_4FGL_J2359.0+3922_daily_bin435.fits outfile=/scratch/kocevski/235912/expmap_352080001_352339201_4FGL_J2359.0+3922_daily_bin435.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/235912/ltcube_352080001_352339201_4FGL_J2359.0+3922_daily_bin435.fits
.....................!
real 191.73
user 185.77
sys 5.54

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/235912/ft1_filtered_4FGL_J2359.0+3922_daily_bin435.fits scfile=/scratch/kocevski/235912/ft2_4FGL_J2359.0+3922_daily_bin435.fits outfile=/scratch/kocevski/235912/cmap_352080001_352339201_4FGL_J2359.0+3922_daily_bin435.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/235912/ft1_filtered_4FGL_J2359.0+3922_daily_bin435.fits scfile=/scratch/kocevski/235912/ft2_4FGL_J2359.0+3922_daily_bin435.fits outfile=/scratch/kocevski/235912/cmap_HighResolution_352080001_352339201_4FGL_J2359.0+3922_daily_bin435.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2489       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    26.631       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3340       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4891       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .45155E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6317       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .69592E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.718       1.0000         .10000E-03   10000.    
    19 'norm      '    3.1903       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.238       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .66205       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1283       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=   9219.183     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3155 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2556        31.896       -.14070E-06   -.88477E-04
   2  Prefactor     .10000E-03    19.761        .20636E-04** at limit **
   3  norm          26.637        15.273        .98862E-06    .50964E-04
   4  Prefactor     .10000E-03    2.2079        .42272E-08** at limit **
   5  norm          4.3347        2.3685       -.19492E-07   -.14823E-03
   6  Prefactor     .10000E-03    2.2995       -.43127E-10** at limit **
   7  Prefactor     2.4900        2.9232       -.38917E-06   -.11037E-02
   8  Prefactor     .10000E-03    7.2791       -.24728E-06** at limit **
   9  Prefactor     .10158E-03    10.954       -.19640E-05** at limit **
  10  Prefactor     .10000E-03    11.478       -.57760E-06** at limit **
  11  norm          1.6319        1.6391       -.17638E-08    .81357E-05
  12  Prefactor     .10000E-03    2.9940        .25231E-07** at limit **
  13  Prefactor     .10000E-03    11.259        .42754E-05** at limit **
  14  norm          .10000E-03    .65621       -.61288E-08** at limit **
  15  Prefactor     .10000E-03    4.7822       -.58459E-06** at limit **
  16  norm          .10004E-03    2.7810        .69650E-06** at limit **
  17  norm          .10000E-03    4.8401        .56772E-06** at limit **
  18  Prefactor     16.715        18.427       -.45621E-06   -.17800E-03
  19  norm          3.1919        2.5192       -.99801E-07   -.46372E-03
  20  Prefactor     11.242        20.571       -.46587E-06   -.64206E-05
  21  Prefactor     .10000E-03    63.817        .98453E-05** at limit **
  22  Prefactor     .10000E-03    21.720       -.20379E-04** at limit **
  23  Prefactor     .10000E-03    12.781       -.69079E-05** at limit **
  24  Prefactor     .10000E-03    3.4526       -.26001E-07** at limit **
  25  Normalizat    .66194        .19354       -.11594E-07   -.17220E-04
  26  Prefactor     1.1283        .90439E-01    .62302E-07   -.54447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.25563
  Prefactor  = 0.0001
  norm       = 26.6372
  Prefactor  = 0.0001
  norm       = 4.33471
  Prefactor  = 0.0001
  Prefactor  = 2.48998
  Prefactor  = 0.0001
  Prefactor  = 0.000101576
  Prefactor  = 0.0001
  norm       = 1.63194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100037
  norm       = 0.0001
  Prefactor  = 16.7155
  norm       = 3.19188
  Prefactor  = 11.2423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.661937
  Prefactor  = 1.12826
 **********
 **   18 **HESSE 
 **********

 FCN=   9219.183     FROM HESSE     STATUS=OK           466 CALLS     3621 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2556        31.843        .17545E-03   -1.5249    
   2  Prefactor     .10000E-03    19.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          26.637        15.270        .77629E-04   -1.4675    
   4  Prefactor     .10000E-03    2.2338        .13929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3347        2.3695        .10568E-03   -1.5292    
   6  Prefactor     .10000E-03    2.3133        .14215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4900        2.9220        .16916E-03   -1.5392    
   8  Prefactor     .10000E-03    7.2966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10158E-03    12.918        .10281       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6319        1.6401        .11964E-03   -1.5452    
  12  Prefactor     .10000E-03    3.0178        .16219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.0062        .15012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10004E-03    18.640        .29380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.715        17.468        .97956E-04   -1.4890    
  19  norm          3.1919        2.5176        .13074E-03   -1.5351    
  20  Prefactor     11.242        20.572        .11950E-03   -1.5037    
  21  Prefactor     .10000E-03    64.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.4892        .17409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .66194        .21186        .40666E-03   -1.0542    
  26  Prefactor     1.1283        .10048        .15431E-03   -.88568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28724e-09
Minuit parameter uncertainties:
  1  25.8934
  2  5.85062e-05
  3  15.2725
  4  3.05442e-06
  5  2.3696
  6  2.54715e-07
  7  2.92216
  8  5.06013e-06
  9  0.0090249
  10  3.08714e-06
  11  1.6401
  12  3.19882e-06
  13  1.84751e-06
  14  1.22854e-06
  15  8.86351e-07
  16  0.00167134
  17  6.21095e-07
  18  17.4732
  19  2.51765
  20  20.5848
  21  0.000100162
  22  2.73905e-05
  23  6.43472e-06
  24  7.39779e-06
  25  0.212123
  26  0.100496
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  7.398e-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:  1.128e+00  1.005e-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:  6.619e-01  2.121e-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: 6.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/235912/likelihoodResults_352080001_352339201_4FGL_J2359.0+3922_daily_bin435.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) = 9219.18481129
delta logL = -0.00136562685839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9219.1834455
delta logL = 1.60827767104e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3310       1.0000          .0000       10.000    
     3 'Normalizat'    .66193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1283       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.

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

 FCN=   9219.183     FROM MIGRAD    STATUS=FAILED        88 CALLS      243 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    400.60        .17619E-02** at limit **
   2  Index         2.3140        8.7697        .50000        .40015E-04
   3  Normalizat    .66193        .59728E-01    .40666E-03   -.15985E-03
   4  Prefactor     1.1283        .29168E-01    .15431E-03   -.10638E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9219.183     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      414 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    400.60        .33586E-03** at limit **
   2  Index         2.3140        8.7697        .20743E-04    .40015E-04
   3  Normalizat    .66193        .59728E-01    .39867E-06   -.15985E-03
   4  Prefactor     1.1283        .29168E-01    .11542E-06   -.10638E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9219.183     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      448 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    17.483        .35239E-03** at limit **
   2  Index         2.3137        5.4620        .50000        .40000E-04
   3  Normalizat    .66193        .20201        .16267E-04   -.15516E-03
   4  Prefactor     1.1283        .98763E-01    .61725E-05   -.94302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.31366
  Normalizat = 0.661935
  Prefactor  = 1.12826
 **********
 **   18 **HESSE 
 **********

 FCN=   9219.183     FROM HESSE     STATUS=OK            29 CALLS      477 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    3.6792        .70478E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3137        6.1567        .50000       -.56719    
   3  Normalizat    .66193        .20244        .32533E-05   -1.0542    
   4  Prefactor     1.1283        .98960E-01    .12345E-05   -.88568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84881e-09
Minuit parameter uncertainties:
  1  0.000291932
  2  4.28238
  3  0.202665
  4  0.098976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/235912': 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) = 9219.18344533
delta logL = 3.28995156451e-07

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  2.919e-04  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.314e+00  4.282e+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.128e+00  9.898e-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:  6.619e-01  2.027e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/235912/cmap_HighResolution_352080001_352339201_4FGL_J2359.0+3922_daily_bin435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2021-09-30 11:56:39.021063', job_id='235912', GAL2='1.13', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1633028199.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='3.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='435' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:56:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 235912: <4FGL_J2359.0+3922_daily_bin435> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin435> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 11:40:30 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:40:32 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:40:32 2021
Terminated at Thu Sep 30 11:56:39 2021
Results reported at Thu Sep 30 11:56:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin435 359.755 39.3669 352080001 352339201 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 :                                   950.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            969 sec.

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

