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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin12
RA = 359.755, Dec = 39.3669
tmin = 242438401, tmax = 242697601
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='233117', job_status='RUN', time_executed='2021-09-30 11:34:22.724508', time_epoch_executed='1633026862.72' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='12'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233117

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233117/ft1_4FGL_J2359.0+3922_daily_bin12.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233117/ft2_4FGL_J2359.0+3922_daily_bin12.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233117/ft1_4FGL_J2359.0+3922_daily_bin12.fits outfile=/scratch/kocevski/233117/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin12.fits ra=359.755 dec=39.3669 rad=12.0 tmin=242438401.0 tmax=242697601.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.42
user 1.25
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233117/ft1_filtered_4FGL_J2359.0+3922_daily_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/233117/ft2_4FGL_J2359.0+3922_daily_bin12.fits sctable="SC_DATA" expcube=/scratch/kocevski/233117/ltcube_242438401_242697601_4FGL_J2359.0+3922_daily_bin12.fits outfile=/scratch/kocevski/233117/expmap_242438401_242697601_4FGL_J2359.0+3922_daily_bin12.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/233117/ltcube_242438401_242697601_4FGL_J2359.0+3922_daily_bin12.fits
.....................!
real 190.02
user 185.44
sys 4.22

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/233117/ft1_filtered_4FGL_J2359.0+3922_daily_bin12.fits scfile=/scratch/kocevski/233117/ft2_4FGL_J2359.0+3922_daily_bin12.fits outfile=/scratch/kocevski/233117/cmap_242438401_242697601_4FGL_J2359.0+3922_daily_bin12.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.776       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0544       1.0000         .10000E-03   10000.    
     3 'norm      '    19.660       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.8158       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21245E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29898E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.369       1.0000         .10000E-03   10000.    
    10 'Prefactor '    85.231       1.0000         .10000E-03   10000.    
    11 'norm      '    4.6208       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.5282       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .89570       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1127       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.7095       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21965E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .66841       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0677       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=   7096.090     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3270 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.744        36.752       -.13317E-07    .68624E-05
   2  Prefactor     7.7933        35.504       -.90245E-05   -.22958E-04
   3  norm          19.689        22.819       -.64412E-06   -.43584E-03
   4  Prefactor     .10000E-03    9.4142        .29705E-06** at limit **
   5  norm          5.8113        3.2591        .14362E-07   -.18102E-05
   6  Prefactor     .10000E-03    7.2846       -.12345E-06** at limit **
   7  Prefactor     .10000E-03    2.2525       -.15333E-05** at limit **
   8  Prefactor     1.0337        102.23        .24214E-04   -.32235E-04
   9  Prefactor     17.394        26.902       -.15112E-05   -.53322E-05
  10  Prefactor     85.066        55.135        .30782E-05   -.14390E-03
  11  norm          4.6227        2.4445        .25225E-07   -.57498E-05
  12  Prefactor     .10000E-03    5.1007       -.79142E-07** at limit **
  13  Prefactor     .10000E-03    155.18       -.26467E-05** at limit **
  14  norm          5.5309        2.0259        .62870E-07    .52034E-04
  15  Prefactor     .10000E-03    7.9967       -.98247E-07** at limit **
  16  norm          .10000E-03    2.3048       -.22357E-07** at limit **
  17  norm          .10000E-03    3.6007       -.20582E-07** at limit **
  18  Prefactor     .10000E-03    4.4941       -.22928E-08** at limit **
  19  norm          .89657        2.1565        .64335E-07   -.87994E-04
  20  Prefactor     8.1169        13.374       -.21711E-05    .77851E-04
  21  Prefactor     .10000E-03    46.594        .24371E-05** at limit **
  22  Prefactor     .10000E-03    45.155       -.12668E-05** at limit **
  23  Prefactor     5.7795        150.53       -.10145E-04   -.12862E-03
  24  Prefactor     .10001E-03    4.8618        .25559E-05** at limit **
  25  Normalizat    .66698        .23360       -.16347E-05   -.24714E-03
  26  Prefactor     1.0679        .10434        .24046E-06   -.55418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.7438
  Prefactor  = 7.79334
  norm       = 19.6891
  Prefactor  = 0.0001
  norm       = 5.81128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.03367
  Prefactor  = 17.3936
  Prefactor  = 85.0661
  norm       = 4.62273
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.53091
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.896571
  Prefactor  = 8.11693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.77953
  Prefactor  = 0.000100008
  Normalizat = 0.666977
  Prefactor  = 1.06787
 **********
 **   18 **HESSE 
 **********

 FCN=   7096.090     FROM HESSE     STATUS=OK           458 CALLS     3728 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.744        36.674        .31777E-03   -1.4446    
   2  Prefactor     7.7933        34.208        .14127E-03   -1.5150    
   3  norm          19.689        22.467        .90330E-04   -1.4820    
   4  Prefactor     .10000E-03    9.6447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.8113        3.2609        .10993E-03   -1.5226    
   6  Prefactor     .10000E-03    7.4975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.741        .21470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0337        105.66        .18343E-02   -1.5505    
   9  Prefactor     17.394        26.868        .96103E-04   -1.4874    
  10  Prefactor     85.066        54.194        .21757E-03   -1.3861    
  11  norm          4.6227        2.4448        .93002E-04   -1.5278    
  12  Prefactor     .10000E-03    5.1420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    161.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.5309        2.0239        .69725E-04   -1.5238    
  15  Prefactor     .10000E-03    8.0760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3198        .12487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6037        .15611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4977        .17440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .89657        1.8897        .18468E-02   -1.5519    
  20  Prefactor     8.1169        13.301        .14076E-03   -1.5138    
  21  Prefactor     .10000E-03    46.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    45.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.7795        136.93        .16810E-03   -1.5227    
  24  Prefactor     .10001E-03    16.120        .31687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .66698        .25575        .41005E-03   -1.0521    
  26  Prefactor     1.0679        .11689        .15799E-03   -.90500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19558e-09
Minuit parameter uncertainties:
  1  36.6951
  2  32.6866
  3  22.4765
  4  3.22564e-05
  5  3.26095
  6  6.89062e-06
  7  6.26087e-05
  8  20.938
  9  26.8866
  10  54.2259
  11  2.44486
  12  4.81941e-07
  13  0.000718431
  14  2.02394
  15  4.0811e-06
  16  2.88768e-07
  17  5.67538e-07
  18  8.32427e-07
  19  1.88981
  20  13.3053
  21  1.45487e-05
  22  0.000150432
  23  56.4086
  24  0.00070637
  25  0.256211
  26  0.116919
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  7.064e-04  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.068e+00  1.169e-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.670e-01  2.562e-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: 9.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233117/likelihoodResults_242438401_242697601_4FGL_J2359.0+3922_daily_bin12.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) = 7096.09014934
delta logL = -0.000295215400911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7096.08985487
delta logL = -7.51121660869e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20434E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4579       1.0000          .0000       10.000    
     3 'Normalizat'    .66739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0677       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=   7095.601     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      272 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43750E-01    .72878        .41377E-02   -.10859E-02
   2  Index         4.7142        2.3311        .95122E-01    .64970E-04
   3  Normalizat    .59202        .43598E-01    .97816E-01   -.16702E-03
   4  Prefactor     1.0874        .20957E-01    .38969E-01   -.16622E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0437501
  Index      = 4.71416
  Normalizat = 0.592021
  Prefactor  = 1.08736
 **********
 **   18 **HESSE 
 **********

 FCN=   7095.601     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      305 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43750E-01    2.4445        .18980E-03   -1.5666    
   2  Index         4.7142        7.2000        .54013E-02   -.57200E-01
   3  Normalizat    .59202        .17088        .43349E-03   -1.0832    
   4  Prefactor     1.0874        .80929E-01    .15667E-03   -.89872    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.2404e-09
Minuit parameter uncertainties:
  1  0.653336
  2  5.77676
  3  0.171037
  4  0.0809384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233117': 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) = 7095.60066574
delta logL = 0.489188382691

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  4.375e-02  6.533e-01  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  4.714e+00  5.777e+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.087e+00  8.094e-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:  5.920e-01  1.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 359.755 39.367
Photon Index (Free Index): 4.71 +/- 5.78
Photon Flux (Free Index): 6.00e-08 +/- 6.42e-08
Energy Flux (Free Index): 8.18e-06 +/- 1.12e-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/233117/cmap_HighResolution_242438401_242697601_4FGL_J2359.0+3922_daily_bin12.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', comment='SUCCESS', energy_flux2='8.18e-06', dlogl='4.89e-01', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-09-30 11:47:16.777325', photon_index_error2='5.78', photon_index2='4.71', ts='-0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='9.42e-08', energy_flux_error2='1.12e-05', EG='0.67', time_epoch_completed='1633027636.78', return_code='0', job_id='233117', GAL2='1.09', EG2='0.59', return_code2='102', photon_flux_error2='6.42e-08', ts2='1.08', photon_index='2.35' WHERE bin_id='12' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:47:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 233117: <4FGL_J2359.0+3922_daily_bin12> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin12> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 11:31:09 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:31:11 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:31:11 2021
Terminated at Thu Sep 30 11:47:17 2021
Results reported at Thu Sep 30 11:47:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin12 359.755 39.3669 242438401 242697601 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 :                                   773.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            968 sec.

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

