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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1164
RA = 359.755, Dec = 39.3669
tmin = 541036801, tmax = 541296001
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='239019', job_status='RUN', time_executed='2021-09-30 11:50:57.103325', time_epoch_executed='1633027857.1' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/239019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/239019/ft1_4FGL_J2359.0+3922_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/239019/ft2_4FGL_J2359.0+3922_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/239019/ft1_4FGL_J2359.0+3922_daily_bin1164.fits outfile=/scratch/kocevski/239019/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1164.fits ra=359.755 dec=39.3669 rad=12.0 tmin=541036801.0 tmax=541296001.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.61
user 3.38
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/239019/ft1_filtered_4FGL_J2359.0+3922_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/239019/ft2_4FGL_J2359.0+3922_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/239019/ltcube_541036801_541296001_4FGL_J2359.0+3922_daily_bin1164.fits outfile=/scratch/kocevski/239019/expmap_541036801_541296001_4FGL_J2359.0+3922_daily_bin1164.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/239019/ltcube_541036801_541296001_4FGL_J2359.0+3922_daily_bin1164.fits
.....................!
real 190.64
user 184.97
sys 5.31

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/239019/ft1_filtered_4FGL_J2359.0+3922_daily_bin1164.fits scfile=/scratch/kocevski/239019/ft2_4FGL_J2359.0+3922_daily_bin1164.fits outfile=/scratch/kocevski/239019/cmap_541036801_541296001_4FGL_J2359.0+3922_daily_bin1164.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5600       1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    63.107       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.278       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3866       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8588       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.3336       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.360       1.0000         .10000E-03   10000.    
    16 'norm      '    10.165       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0724       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    65.692       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.4127       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79978       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0392       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=   8853.228     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     3059 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.037        .11717E-06** at limit **
   2  Prefactor     8.5607        16.859        .33813E-06   -.99278E-06
   3  norm          .10000E-03    4.4512        .42956E-07** at limit **
   4  Prefactor     .10000E-03    2.7079        .85148E-07** at limit **
   5  norm          .10000E-03    .74602        .14205E-07** at limit **
   6  Prefactor     .10000E-03    5.8376       -.36123E-06** at limit **
   7  Prefactor     .10000E-03    1.5632        .10977E-06** at limit **
   8  Prefactor     .10000E-03    8.1518        .17336E-06** at limit **
   9  Prefactor     63.134        31.023        .44308E-06    .22412E-03
  10  Prefactor     31.276        32.756        .11368E-06   -.12042E-04
  11  norm          4.3871        2.6713        .80166E-07   -.15684E-04
  12  Prefactor     3.8596        3.6961        .14950E-08    .29779E-04
  13  Prefactor     .10000E-03    10.818       -.15635E-06** at limit **
  14  norm          6.3345        2.0931       -.12648E-07   -.12886E-04
  15  Prefactor     13.360        11.494        .11234E-05   -.62329E-04
  16  norm          10.167        5.1174        .19893E-06   -.23452E-04
  17  norm          5.0696        8.1776        .31372E-05   -.10356E-03
  18  Prefactor     .10000E-03    12.328       -.37112E-06** at limit **
  19  norm          .10000E-03    .79473       -.59308E-07** at limit **
  20  Prefactor     .10000E-03    22.589       -.21028E-06** at limit **
  21  Prefactor     .10000E-03    23.944       -.65256E-07** at limit **
  22  Prefactor     65.668        42.688       -.18537E-06   -.13715E-03
  23  Prefactor     .10000E-03    13.957        .53559E-07** at limit **
  24  Prefactor     4.4131        5.1588        .25456E-06   -.21516E-04
  25  Normalizat    .79866        .20712       -.38959E-06   -.16156E-04
  26  Prefactor     1.0397        .92203E-01   -.20835E-06    .12781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.56067
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.134
  Prefactor  = 31.2756
  norm       = 4.38705
  Prefactor  = 3.85958
  Prefactor  = 0.0001
  norm       = 6.33448
  Prefactor  = 13.3597
  norm       = 10.1673
  norm       = 5.06961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.6678
  Prefactor  = 0.0001
  Prefactor  = 4.41306
  Normalizat = 0.798657
  Prefactor  = 1.03971
 **********
 **   18 **HESSE 
 **********

 FCN=   8853.228     FROM HESSE     STATUS=OK           452 CALLS     3511 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.5607        16.847        .13701E-03   -1.5123    
   3  norm          .10000E-03    4.4574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7463        .15116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .75179        .79354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6193        .22956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.2009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     63.134        31.146        .50514E-04   -1.4117    
  10  Prefactor     31.276        32.753        .71643E-04   -1.4589    
  11  norm          4.3871        2.6686        .11591E-03   -1.5289    
  12  Prefactor     3.8596        3.7004        .17178E-03   -1.5315    
  13  Prefactor     .10000E-03    10.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.3345        2.0919        .74454E-04   -1.5205    
  15  Prefactor     13.360        11.482        .54793E-03   -1.4977    
  16  norm          10.167        5.1157        .62837E-03   -1.5070    
  17  norm          5.0696        8.1766        .89264E-03   -1.5258    
  18  Prefactor     .10000E-03    12.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .80153        .81928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     65.668        42.988        .49516E-04   -1.4085    
  23  Prefactor     .10000E-03    13.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.4131        5.1495        .19171E-03   -1.5288    
  25  Normalizat    .79866        .23271        .38841E-03   -1.0012    
  26  Prefactor     1.0397        .10423        .16397E-03   -.91417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53876e-10
Minuit parameter uncertainties:
  1  3.06999e-05
  2  16.856
  3  2.9026e-07
  4  6.7584e-07
  5  3.86009e-07
  6  8.23852e-06
  7  3.69272e-07
  8  2.51621e-05
  9  31.1536
  10  32.772
  11  2.66868
  12  3.70063
  13  4.525e-05
  14  2.09191
  15  11.484
  16  5.11588
  17  8.17838
  18  2.19661e-05
  19  2.3294e-06
  20  4.99938e-05
  21  3.64949e-05
  22  43.0086
  23  2.43601e-05
  24  5.15003
  25  0.233004
  26  0.104255
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  4.413e+00  5.150e+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:  1.040e+00  1.043e-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:  7.987e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 2.27e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 8.00e-06 +/- 9.34e-06

TS (Fixed Index): 1.08
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 8.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/239019/likelihoodResults_541036801_541296001_4FGL_J2359.0+3922_daily_bin1164.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) = 8853.21986756
delta logL = 0.00800882444855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8853.21135487
delta logL = 0.0165215147426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4268       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2027       1.0000          .0000       10.000    
     3 'Normalizat'    .80148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0388       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=   8853.211     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      220 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4181        216.31        .43124E-02    .20504E-03
   2  Index         2.2039        6.0453        .16672        .12326E-03
   3  Normalizat    .80149        .76941E-01    .87555E-01    .55186E-04
   4  Prefactor     1.0388        .32339E-01    .40614E-01    .46059E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.41805
  Index      = 2.2039
  Normalizat = 0.801491
  Prefactor  = 1.03879
 **********
 **   18 **HESSE 
 **********

 FCN=   8853.211     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4181        8.9023        .17249E-03   -1.5242    
   2  Index         2.2039        .83332        .98951E-02   -.59345    
   3  Normalizat    .80149        .21448        .38777E-03   -1.0001    
   4  Prefactor     1.0388        .10269        .16403E-03   -.91447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73051e-11
Minuit parameter uncertainties:
  1  8.9045
  2  0.839038
  3  0.214703
  4  0.102706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/239019': 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) = 8853.21135358
delta logL = 0.0165228058067

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  5.418e+00  8.905e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.204e+00  8.390e-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:  1.039e+00  1.027e-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.015e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 359.755 39.367
Photon Index (Free Index): 2.20 +/- 0.84
Photon Flux (Free Index): 2.09e-08 +/- 2.62e-08
Energy Flux (Free Index): 9.32e-06 +/- 1.47e-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/239019/cmap_HighResolution_541036801_541296001_4FGL_J2359.0+3922_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', comment='SUCCESS', photon_flux='2.27e-08', energy_flux2='9.32e-06', photon_flux_error='2.65e-08', dlogl='1.65e-02', energy_flux='8.00e-06', photon_flux2='2.09e-08', job_status='DONE', time_completed='2021-09-30 12:05:58.972084', photon_index_error2='0.84', photon_index2='2.20', ts='1.08', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='8.76e-08', energy_flux_error2='1.47e-05', EG='0.80', time_epoch_completed='1633028758.97', return_code='0', job_id='239019', GAL2='1.04', EG2='0.80', return_code2='0', energy_flux_error='9.34e-06', photon_flux_error2='2.62e-08', ts2='1.12', photon_index='2.35' WHERE bin_id='1164' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:05:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 239019: <4FGL_J2359.0+3922_daily_bin1164> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1164> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 11:50:39 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:50:41 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:50:41 2021
Terminated at Thu Sep 30 12:05:59 2021
Results reported at Thu Sep 30 12:05:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1164 359.755 39.3669 541036801 541296001 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 :                                   884.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

