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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin499
RA = 359.755, Dec = 39.3669
tmin = 368668801, tmax = 368928001
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='236019', job_status='RUN', time_executed='2021-09-30 11:40:58.402471', time_epoch_executed='1633027258.4' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236019/ft1_4FGL_J2359.0+3922_daily_bin499.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236019/ft2_4FGL_J2359.0+3922_daily_bin499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236019/ft1_4FGL_J2359.0+3922_daily_bin499.fits outfile=/scratch/kocevski/236019/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin499.fits ra=359.755 dec=39.3669 rad=12.0 tmin=368668801.0 tmax=368928001.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.40
user 3.16
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236019/ft1_filtered_4FGL_J2359.0+3922_daily_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/236019/ft2_4FGL_J2359.0+3922_daily_bin499.fits sctable="SC_DATA" expcube=/scratch/kocevski/236019/ltcube_368668801_368928001_4FGL_J2359.0+3922_daily_bin499.fits outfile=/scratch/kocevski/236019/expmap_368668801_368928001_4FGL_J2359.0+3922_daily_bin499.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/236019/ltcube_368668801_368928001_4FGL_J2359.0+3922_daily_bin499.fits
.....................!
real 193.89
user 187.76
sys 5.73

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/236019/ft1_filtered_4FGL_J2359.0+3922_daily_bin499.fits scfile=/scratch/kocevski/236019/ft2_4FGL_J2359.0+3922_daily_bin499.fits outfile=/scratch/kocevski/236019/cmap_368668801_368928001_4FGL_J2359.0+3922_daily_bin499.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7705       1.0000         .10000E-03   10000.    
     3 'norm      '    .10604E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3111       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4704       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10235E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13395       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.5488       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37159E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0595       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14053E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84084       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2248       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=   9936.214     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     2754 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.289        .90712E-02** at limit **
   2  Prefactor     8.7745        19.161        .33837E-02   -.10166E-02
   3  norm          .10000E-03    27.363        .90712E-02** at limit **
   4  Prefactor     .10000E-03    1.9615        .90712E-02** at limit **
   5  norm          2.3116        1.6141        .67470E-02   -.16072E-03
   6  Prefactor     2.4790        7.8858        .65040E-02    .23164E-02
   7  Prefactor     .10000E-03    3.4239        .90712E-02** at limit **
   8  Prefactor     .10000E-03    12.178        .90712E-02** at limit **
   9  Prefactor     .10000E-03    69.679        .90712E-02** at limit **
  10  Prefactor     .10000E-03    33.153        .90712E-02** at limit **
  11  norm          .10000E-03    2.0041        .90712E-02** at limit **
  12  Prefactor     .10000E-03    2.1290        .90712E-02** at limit **
  13  Prefactor     .10001E-03    11.278        .90712E-02** at limit **
  14  norm          .10000E-03    .32272        .90712E-02** at limit **
  15  Prefactor     .21344        5.2100        .96719E-01    .41107E-03
  16  norm          .10000E-03    2.8985        .90712E-02** at limit **
  17  norm          .10000E-03    7.9906        .90712E-02** at limit **
  18  Prefactor     .10000E-03    8.1589        .90712E-02** at limit **
  19  norm          3.5468        2.4506        .53640E-02    .23259E-03
  20  Prefactor     .10000E-03    16.704        .90712E-02** at limit **
  21  Prefactor     .10085E-03    24.254        .16743    ** at limit **
  22  Prefactor     2.1735        140.58        .71991E-02    .11184E-03
  23  Prefactor     .10000E-03    30.882        .90712E-02** at limit **
  24  Prefactor     .10000E-03    4.6248        .90712E-02** at limit **
  25  Normalizat    .84069        .20986        .92911E-01    .17468E-03
  26  Prefactor     1.2248        .94769E-01    .34068E-01    .40048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 8.7745
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.31163
  Prefactor  = 2.47898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.213437
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.54684
  Prefactor  = 0.0001
  Prefactor  = 0.00010085
  Prefactor  = 2.1735
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.840695
  Prefactor  = 1.22485
 **********
 **   18 **HESSE 
 **********

 FCN=   9936.214     FROM HESSE     STATUS=OK           454 CALLS     3208 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7745        19.133        .13535E-03   -1.5115    
   3  norm          .10000E-03    27.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9648        .13633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3116        1.6192        .10307E-03   -1.5404    
   6  Prefactor     2.4790        7.8744        .26016E-03   -1.5393    
   7  Prefactor     .10000E-03    3.5716        .35922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    70.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0919        .27539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1350        .14202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    11.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .32888        .55291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .21344        78.051        .43412E-02   -1.5616    
  16  norm          .10000E-03    2.9503        .16571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.0554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.5468        2.4496        .12499E-03   -1.5331    
  20  Prefactor     .10000E-03    17.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10085E-03    24.082        .16868       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.1735        140.87        .28796E-03   -1.5413    
  23  Prefactor     .10000E-03    30.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.6758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .84069        .23272        .41160E-03   -.98576    
  26  Prefactor     1.2248        .10680        .16316E-03   -.85570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48069e-08
Minuit parameter uncertainties:
  1  0.000445589
  2  19.1465
  3  7.47849e-05
  4  2.84821e-06
  5  1.61919
  6  7.87769
  7  1.0259e-07
  8  1.1875e-05
  9  0.000946092
  10  9.29857e-05
  11  3.06224e-06
  12  7.20163e-07
  13  0.000526613
  14  4.01596e-07
  15  8.1719
  16  7.8616e-07
  17  6.75731e-06
  18  8.49475e-06
  19  2.44972
  20  6.01069e-05
  21  0.00905416
  22  35.0812
  23  0.000206009
  24  1.11182e-06
  25  0.232994
  26  0.10682
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  1.112e-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.225e+00  1.068e-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:  8.407e-01  2.330e-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.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/236019/likelihoodResults_368668801_368928001_4FGL_J2359.0+3922_daily_bin499.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) = 9936.21541276
delta logL = -0.00101926480966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9936.21439478
delta logL = -1.29105137603e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10677E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3313       1.0000          .0000       10.000    
     3 'Normalizat'    .84045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2250       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=   9936.214     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    21.986        .18142E-02** at limit **
   2  Index         2.3081        6.0859        .50000        .24482E-04
   3  Normalizat    .84069        .11188E-01    .41160E-03    .35244E-04
   4  Prefactor     1.2248        .52867E-02    .16316E-03    .81524E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100223
  Index      = 2.30807
  Normalizat = 0.840695
  Prefactor  = 1.22485
 **********
 **   18 **HESSE 
 **********

 FCN=   9936.214     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    104.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3081        5.3679        .50000       -.56852    
   3  Normalizat    .84069        .24859E-01    .16464E-04   -.98576    
   4  Prefactor     1.2248        .11747E-01    .65264E-05   -.85570    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.48027e-09
Minuit parameter uncertainties:
  1  0.00965735
  2  184.617
  3  0.0248596
  4  0.0117472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236019': 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) = 9936.21439326
delta logL = 2.2881795303e-07

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.002e-04  9.657e-03  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.308e+00  1.846e+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.225e+00  1.175e-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:  8.407e-01  2.486e-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/236019/cmap_HighResolution_368668801_368928001_4FGL_J2359.0+3922_daily_bin499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2021-09-30 11:56:20.618388', job_id='236019', GAL2='1.22', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1633028180.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='499' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:56:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 236019: <4FGL_J2359.0+3922_daily_bin499> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin499 359.755 39.3669 368668801 368928001 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 :                                   909.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            941 sec.

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

