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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin894
RA = 359.755, Dec = 39.3669
tmin = 471052801, tmax = 471312001
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='237565', job_status='RUN', time_executed='2021-09-30 11:46:14.941254', time_epoch_executed='1633027574.94' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237565/ft1_4FGL_J2359.0+3922_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237565/ft2_4FGL_J2359.0+3922_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237565/ft1_4FGL_J2359.0+3922_daily_bin894.fits outfile=/scratch/kocevski/237565/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin894.fits ra=359.755 dec=39.3669 rad=12.0 tmin=471052801.0 tmax=471312001.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 6.21
user 3.77
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237565/ft1_filtered_4FGL_J2359.0+3922_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/237565/ft2_4FGL_J2359.0+3922_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/237565/ltcube_471052801_471312001_4FGL_J2359.0+3922_daily_bin894.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/237565/ft2_4FGL_J2359.0+3922_daily_bin894.fits
.....................!
real 12.00
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237565/ft1_filtered_4FGL_J2359.0+3922_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/237565/ft2_4FGL_J2359.0+3922_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/237565/ltcube_471052801_471312001_4FGL_J2359.0+3922_daily_bin894.fits outfile=/scratch/kocevski/237565/expmap_471052801_471312001_4FGL_J2359.0+3922_daily_bin894.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/237565/ltcube_471052801_471312001_4FGL_J2359.0+3922_daily_bin894.fits
.....................!
real 189.61
user 185.28
sys 4.00

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237565/ft1_filtered_4FGL_J2359.0+3922_daily_bin894.fits scfile=/scratch/kocevski/237565/ft2_4FGL_J2359.0+3922_daily_bin894.fits outfile=/scratch/kocevski/237565/cmap_HighResolution_471052801_471312001_4FGL_J2359.0+3922_daily_bin894.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9407       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .76173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.375       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10533E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1773       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.518       1.0000         .10000E-03   10000.    
    14 'norm      '    .71529E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.826       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4376       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2013       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.570       1.0000         .10000E-03   10000.    
    19 'norm      '    .30707E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.261       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1815       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2028       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1694       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94580       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=   9694.970     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3146 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.829       -.16612E-06** at limit **
   2  Prefactor     .10000E-03    20.504        .55901E-06** at limit **
   3  norm          .10000E-03    8.3159       -.11346E-06** at limit **
   4  Prefactor     .10000E-03    2.4507       -.45375E-07** at limit **
   5  norm          2.9406        2.0532        .14009E-07   -.71224E-05
   6  Prefactor     .10000E-03    7.1742        .62026E-07** at limit **
   7  Prefactor     .76170        2.5452        .42779E-06   -.25417E-04
   8  Prefactor     5.1226        16.096        .35593E-07    .16006E-07
   9  Prefactor     14.378        15.000        .68868E-08    .33202E-06
  10  Prefactor     .10000E-03    21.404       -.37981E-06** at limit **
  11  norm          .10000E-03    2.0521       -.46235E-07** at limit **
  12  Prefactor     6.1777        4.1359       -.31737E-07   -.15530E-05
  13  Prefactor     30.513        21.786        .42866E-06    .36781E-05
  14  norm          .77646E-01    .59320       -.16708E-08   -.25611E-03
  15  Prefactor     32.832        14.485       -.42742E-07   -.73693E-04
  16  norm          5.4367        7.5142        .20674E-05    .38271E-04
  17  norm          6.2015        5.9850       -.51723E-06   -.35092E-04
  18  Prefactor     22.565        26.964       -.12950E-05    .45248E-05
  19  norm          .22272E-01    1.0239        .36333E-06   -.63012E-03
  20  Prefactor     .10000E-03    10.985        .74284E-07** at limit **
  21  Prefactor     .10000E-03    44.307       -.18434E-06** at limit **
  22  Prefactor     48.281        42.462       -.29044E-05   -.26469E-04
  23  Prefactor     4.1634        93.493        .88328E-05    .61437E-05
  24  Prefactor     8.2035        6.7720        .93904E-07   -.66060E-04
  25  Normalizat    1.1690        .20578       -.18069E-06   -.71547E-04
  26  Prefactor     .94595        .88470E-01   -.10690E-07   -.46461E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.9406
  Prefactor  = 0.0001
  Prefactor  = 0.761697
  Prefactor  = 5.12257
  Prefactor  = 14.3775
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.1777
  Prefactor  = 30.5134
  norm       = 0.0776459
  Prefactor  = 32.8317
  norm       = 5.4367
  norm       = 6.20153
  Prefactor  = 22.5655
  norm       = 0.0222723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.2812
  Prefactor  = 4.1634
  Prefactor  = 8.20348
  Normalizat = 1.16897
  Prefactor  = 0.945946
 **********
 **   18 **HESSE 
 **********

 FCN=   9694.970     FROM HESSE     STATUS=OK           470 CALLS     3616 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.3394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4662        .15049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9406        2.0532        .11420E-03   -1.5365    
   6  Prefactor     .10000E-03    7.4520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .76170        2.4791        .25967E-03   -1.5533    
   8  Prefactor     5.1226        15.760        .17763E-03   -1.5255    
   9  Prefactor     14.378        15.025        .10564E-03   -1.4949    
  10  Prefactor     .10000E-03    21.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1436        .27522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1777        4.1401        .15931E-03   -1.5211    
  13  Prefactor     30.513        21.787        .72528E-04   -1.4603    
  14  norm          .77646E-01    4.6084        .14423E-02   -1.5652    
  15  Prefactor     32.832        14.474        .69939E-04   -1.4561    
  16  norm          5.4367        7.5521        .86160E-03   -1.5242    
  17  norm          6.2015        5.9844        .80603E-03   -1.5210    
  18  Prefactor     22.565        27.077        .84313E-04   -1.4758    
  19  norm          .22272E-01    1.4619        .35647E-01   -1.5678    
  20  Prefactor     .10000E-03    11.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    44.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     48.281        42.613        .57721E-04   -1.4317    
  23  Prefactor     4.1634        93.434        .19709E-03   -1.5300    
  24  Prefactor     8.2035        6.7543        .69991E-03   -1.5135    
  25  Normalizat    1.1690        .24162        .34698E-03   -.87567    
  26  Prefactor     .94595        .10471        .17271E-03   -.94554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62698e-08
Minuit parameter uncertainties:
  1  3.96177e-06
  2  1.0488e-05
  3  2.88422e-05
  4  3.66375e-06
  5  2.05329
  6  1.51235e-05
  7  2.47947
  8  15.7731
  9  15.0291
  10  7.72702e-06
  11  1.26926e-06
  12  4.14032
  13  21.793
  14  1.19569
  15  14.4755
  16  7.55338
  17  5.985
  18  27.092
  19  0.360084
  20  7.6342e-06
  21  1.57871e-05
  22  42.6402
  23  39.5159
  24  6.7549
  25  0.241855
  26  0.104731
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  8.203e+00  6.755e+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.459e-01  1.047e-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.169e+00  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.70
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/237565/likelihoodResults_471052801_471312001_4FGL_J2359.0+3922_daily_bin894.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) = 9694.95352783
delta logL = 0.0161486689176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9694.94084345
delta logL = 0.0288330543972

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6271       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2080       1.0000          .0000       10.000    
     3 'Normalizat'    1.1748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94449       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=   9694.941     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      257 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6278        9.8579        .12915E-03   -.76933E-04
   2  Index         2.2079        .59877        .71458E-02   -.42912E-04
   3  Normalizat    1.1748        .22545        .34623E-03    .18539E-03
   4  Prefactor     .94449        .10213        .17282E-03    .41325E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.62784
  Index      = 2.20794
  Normalizat = 1.1748
  Prefactor  = 0.944492
 **********
 **   18 **HESSE 
 **********

 FCN=   9694.941     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6278        9.4364        .51662E-05   -1.5087    
   2  Index         2.2079        .57302        .28583E-03   -.59247    
   3  Normalizat    1.1748        .22544        .13849E-04   -.87385    
   4  Prefactor     .94449        .10217        .34564E-04   -.94603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20247e-10
Minuit parameter uncertainties:
  1  9.43788
  2  0.574861
  3  0.225625
  4  0.102193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237565': 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) = 9694.94084344
delta logL = 0.028833061986

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  9.628e+00  9.438e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.208e+00  5.749e-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:  9.445e-01  1.022e-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.175e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 359.755 39.367
Photon Index (Free Index): 2.21 +/- 0.57
Photon Flux (Free Index): 3.74e-08 +/- 3.66e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.56e-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/237565/cmap_HighResolution_471052801_471312001_4FGL_J2359.0+3922_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='1.66e-05', photon_flux_error='3.47e-08', dlogl='2.88e-02', energy_flux='1.49e-05', photon_flux2='3.74e-08', job_status='DONE', time_completed='2021-09-30 12:02:35.398363', photon_index_error2='0.57', photon_index2='2.21', ts='2.70', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.56e-05', EG='1.17', time_epoch_completed='1633028555.4', return_code='0', job_id='237565', GAL2='0.94', EG2='1.17', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='3.66e-08', ts2='2.75', photon_index='2.35' WHERE bin_id='894' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:02:35 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin894 359.755 39.3669 471052801 471312001 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 :                                   966.07 sec.
    Max Memory :                                 1198 MB
    Average Memory :                             330.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            999 sec.

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

