/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 4 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2359.0+3922_daily_bin81
RA = 359.755, Dec = 39.3669
tmin = 260323201, tmax = 260582401
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='234416', job_status='RUN', time_executed='2021-09-30 11:35:27.652526', time_epoch_executed='1633026927.65' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234416/ft1_4FGL_J2359.0+3922_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234416/ft2_4FGL_J2359.0+3922_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234416/ft1_4FGL_J2359.0+3922_daily_bin81.fits outfile=/scratch/kocevski/234416/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin81.fits ra=359.755 dec=39.3669 rad=12.0 tmin=260323201.0 tmax=260582401.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 1.53
user 1.35
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/234416/ft1_filtered_4FGL_J2359.0+3922_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/234416/ft2_4FGL_J2359.0+3922_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/234416/ltcube_260323201_260582401_4FGL_J2359.0+3922_daily_bin81.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/234416/ft2_4FGL_J2359.0+3922_daily_bin81.fits
.....................!
real 13.66
user 12.82
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234416/ft1_filtered_4FGL_J2359.0+3922_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/234416/ft2_4FGL_J2359.0+3922_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/234416/ltcube_260323201_260582401_4FGL_J2359.0+3922_daily_bin81.fits outfile=/scratch/kocevski/234416/expmap_260323201_260582401_4FGL_J2359.0+3922_daily_bin81.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/234416/ltcube_260323201_260582401_4FGL_J2359.0+3922_daily_bin81.fits
.....................!
real 195.46
user 185.44
sys 6.87

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/234416/ft1_filtered_4FGL_J2359.0+3922_daily_bin81.fits scfile=/scratch/kocevski/234416/ft2_4FGL_J2359.0+3922_daily_bin81.fits outfile=/scratch/kocevski/234416/cmap_260323201_260582401_4FGL_J2359.0+3922_daily_bin81.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234416/ft1_filtered_4FGL_J2359.0+3922_daily_bin81.fits scfile=/scratch/kocevski/234416/ft2_4FGL_J2359.0+3922_daily_bin81.fits outfile=/scratch/kocevski/234416/cmap_HighResolution_260323201_260582401_4FGL_J2359.0+3922_daily_bin81.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11859E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.781       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3067       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7552       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5092       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9791       1.0000         .10000E-03   10000.    
    16 'norm      '    .25758       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .85887E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6726       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.539       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.579       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0746       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=   8812.296     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3161 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2033        .22619E-06** at limit **
   2  Prefactor     .10000E-03    28.180       -.67716E-05** at limit **
   3  norm          1.7809        17.333        .16679E-05   -.41481E-03
   4  Prefactor     .10000E-03    9.2234       -.17392E-07** at limit **
   5  norm          .10000E-03    1.0347        .52182E-08** at limit **
   6  Prefactor     .10000E-03    8.2177       -.25340E-06** at limit **
   7  Prefactor     .10000E-03    1.4165        .26584E-08** at limit **
   8  Prefactor     .10000E-03    18.293       -.48122E-06** at limit **
   9  Prefactor     19.781        32.776       -.71164E-06   -.14971E-05
  10  Prefactor     .10000E-03    25.998        .61913E-05** at limit **
  11  norm          3.3067        2.4939       -.21096E-07   -.23250E-04
  12  Prefactor     1.3667        3.9428       -.23430E-07   -.15611E-03
  13  Prefactor     6.7586        26.746        .77933E-06   -.52683E-05
  14  norm          2.5088        1.2916       -.15762E-07   -.26490E-03
  15  Prefactor     2.9832        10.314        .51968E-07   -.56099E-03
  16  norm          .27689        5.2039       -.75345E-06   -.22810E-03
  17  norm          .10000E-03    3.2695       -.32699E-07** at limit **
  18  Prefactor     .10031E-03    14.742        .30137E-05** at limit **
  19  norm          4.6732        3.3528       -.41404E-07   -.53981E-04
  20  Prefactor     .10000E-03    42.345       -.34914E-06** at limit **
  21  Prefactor     45.548        48.324        .65328E-05    .39770E-04
  22  Prefactor     29.567        41.671       -.94494E-05   -.64885E-04
  23  Prefactor     .10000E-03    105.66       -.17490E-05** at limit **
  24  Prefactor     .10000E-03    5.9842       -.19112E-06** at limit **
  25  Normalizat    1.0842        .21819        .13193E-05   -.18455E-03
  26  Prefactor     1.0745        .97251E-01   -.43496E-06   -.77818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.78093
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7805
  Prefactor  = 0.0001
  norm       = 3.30674
  Prefactor  = 1.36674
  Prefactor  = 6.75859
  norm       = 2.50882
  Prefactor  = 2.98317
  norm       = 0.276888
  norm       = 0.0001
  Prefactor  = 0.000100314
  norm       = 4.67317
  Prefactor  = 0.0001
  Prefactor  = 45.5478
  Prefactor  = 29.5668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0842
  Prefactor  = 1.0745
 **********
 **   18 **HESSE 
 **********

 FCN=   8812.296     FROM HESSE     STATUS=OK           460 CALLS     3621 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7809        39.126        .15572E-02   -1.5441    
   4  Prefactor     .10000E-03    9.5623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0837        .18646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.5962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4293        .10905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.781        33.001        .90055E-04   -1.4818    
  10  Prefactor     .10000E-03    26.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3067        2.4929        .12489E-03   -1.5344    
  12  Prefactor     1.3667        3.8979        .30787E-03   -1.5474    
  13  Prefactor     6.7586        26.760        .15438E-03   -1.5188    
  14  norm          2.5088        1.2897        .73769E-04   -1.5391    
  15  Prefactor     2.9832        13.547        .11761E-02   -1.5363    
  16  norm          .27689        23.174        .35776E-02   -1.5603    
  17  norm          .10000E-03    3.2737        .16577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10031E-03    72.012        .59106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6732        3.3594        .13725E-03   -1.5276    
  20  Prefactor     .10000E-03    43.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.548        48.514        .59414E-04   -1.4357    
  22  Prefactor     29.567        42.081        .73667E-04   -1.4620    
  23  Prefactor     .10000E-03    106.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.0751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0842        .25466        .36350E-03   -.90261    
  26  Prefactor     1.0745        .11221        .17028E-03   -.90286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60087e-09
Minuit parameter uncertainties:
  1  3.15452e-06
  2  0.000126106
  3  16.707
  4  1.8477e-05
  5  3.51594e-07
  6  3.17794e-05
  7  2.49071e-06
  8  2.23749e-05
  9  33.0317
  10  5.28672e-05
  11  2.493
  12  3.89859
  13  26.8072
  14  1.28967
  15  12.7187
  16  5.06737
  17  4.39119e-07
  18  0.00952385
  19  3.35955
  20  7.97933e-05
  21  48.5565
  22  42.1234
  23  7.68539e-05
  24  7.81907e-06
  25  0.254945
  26  0.112239
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  7.819e-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.075e+00  1.122e-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.084e+00  2.549e-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: 7.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/234416/likelihoodResults_260323201_260582401_4FGL_J2359.0+3922_daily_bin81.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) = 8812.29671978
delta logL = -0.00078477774332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8812.29593531
delta logL = -3.08364178636e-07

Fit tolerance = 1e-08

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

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

 FCN=   8812.296     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    52.720        .18142E-02** at limit **
   2  Index         2.2865        8.5622        .50000        .13990E-04
   3  Normalizat    1.0842        .16036E-01    .36350E-03    .36842E-04
   4  Prefactor     1.0745        .75316E-02    .17028E-03    .71250E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100729
  Index      = 2.28654
  Normalizat = 1.08421
  Prefactor  = 1.0745
 **********
 **   18 **HESSE 
 **********

 FCN=   8812.296     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10073E-03    312.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2865        5.1352        .50000       -.57364    
   3  Normalizat    1.0842        .41259E-01    .14540E-04   -.90261    
   4  Prefactor     1.0745        .19344E-01    .34057E-04   -.90286    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74868e-08
Minuit parameter uncertainties:
  1  0.0303464
  2  746.941
  3  0.0412602
  4  0.0193444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234416': 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) = 8812.29593483
delta logL = 1.7770435079e-07

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.007e-04  3.035e-02  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.287e+00  7.469e+02  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.075e+00  1.934e-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:  1.084e+00  4.126e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/234416/cmap_HighResolution_260323201_260582401_4FGL_J2359.0+3922_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-30 11:50:25.265404', job_id='234416', GAL2='1.07', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1633027825.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='81' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 234416: <4FGL_J2359.0+3922_daily_bin81> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin81> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 11:35:14 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:35:15 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:35:15 2021
Terminated at Thu Sep 30 11:50:26 2021
Results reported at Thu Sep 30 11:50:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin81 359.755 39.3669 260323201 260582401 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 :                                   892.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

