/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 5 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 = 7404
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2359.0+3922_daily_bin246
RA = 359.755, Dec = 39.3669
tmin = 303091201, tmax = 303350401
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='234670', job_status='RUN', time_executed='2021-09-30 11:35:51.471804', time_epoch_executed='1633026951.47' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234670/ft1_4FGL_J2359.0+3922_daily_bin246.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234670/ft2_4FGL_J2359.0+3922_daily_bin246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234670/ft1_4FGL_J2359.0+3922_daily_bin246.fits outfile=/scratch/kocevski/234670/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin246.fits ra=359.755 dec=39.3669 rad=12.0 tmin=303091201.0 tmax=303350401.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.54
user 3.26
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234670/ft1_filtered_4FGL_J2359.0+3922_daily_bin246.fits evtable="EVENTS" scfile=/scratch/kocevski/234670/ft2_4FGL_J2359.0+3922_daily_bin246.fits sctable="SC_DATA" expcube=/scratch/kocevski/234670/ltcube_303091201_303350401_4FGL_J2359.0+3922_daily_bin246.fits outfile=/scratch/kocevski/234670/expmap_303091201_303350401_4FGL_J2359.0+3922_daily_bin246.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/234670/ltcube_303091201_303350401_4FGL_J2359.0+3922_daily_bin246.fits
.....................!
real 190.17
user 185.22
sys 4.53

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/234670/ft1_filtered_4FGL_J2359.0+3922_daily_bin246.fits scfile=/scratch/kocevski/234670/ft2_4FGL_J2359.0+3922_daily_bin246.fits outfile=/scratch/kocevski/234670/cmap_303091201_303350401_4FGL_J2359.0+3922_daily_bin246.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/234670/ft1_filtered_4FGL_J2359.0+3922_daily_bin246.fits scfile=/scratch/kocevski/234670/ft2_4FGL_J2359.0+3922_daily_bin246.fits outfile=/scratch/kocevski/234670/cmap_HighResolution_303091201_303350401_4FGL_J2359.0+3922_daily_bin246.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8747       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0942       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9467       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .48607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.712       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7282       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8302       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3508       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .82886       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4177       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.758       1.0000         .10000E-03   10000.    
    19 'norm      '    .62984       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.052       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.761       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90179       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98661       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=   9973.258     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3099 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.253       -.11638E-04** at limit **
   2  Prefactor     .10000E-03    8.9760        .12690E-05** at limit **
   3  norm          1.8708        21.709       -.78326E-06   -.12875E-04
   4  Prefactor     1.0925        2.5324        .55907E-07   -.52086E-03
   5  norm          3.9467        2.0571        .59474E-08    .54637E-04
   6  Prefactor     .10000E-03    4.8393        .31863E-06** at limit **
   7  Prefactor     .49482        1.8354        .25560E-06   -.21793E-04
   8  Prefactor     12.710        17.208       -.16655E-05   -.19612E-04
   9  Prefactor     3.7287        18.653       -.59330E-06   -.28806E-04
  10  Prefactor     .10000E-03    14.991       -.10204E-04** at limit **
  11  norm          2.8303        1.7483       -.22490E-07   -.11487E-04
  12  Prefactor     3.0118        3.4918        .15768E-05    .16114E-04
  13  Prefactor     .10000E-03    8.7864        .20405E-05** at limit **
  14  norm          5.3507        1.7066        .96252E-07    .98518E-05
  15  Prefactor     .10000E-03    3.2638       -.60323E-07** at limit **
  16  norm          .83358        6.0080       -.10227E-06    .17709E-03
  17  norm          1.4177        5.0210       -.15340E-07   -.29072E-03
  18  Prefactor     28.750        18.081       -.34084E-05   -.16293E-04
  19  norm          .62983        1.7670       -.38629E-07   -.39828E-04
  20  Prefactor     .10000E-03    6.6824       -.16028E-05** at limit **
  21  Prefactor     14.053        29.731        .14925E-05    .48641E-05
  22  Prefactor     .10000E-03    20.379        .14887E-04** at limit **
  23  Prefactor     .10000E-03    28.126        .39901E-05** at limit **
  24  Prefactor     13.757        8.3735       -.18327E-06   -.49991E-04
  25  Normalizat    .90163        .18437        .73666E-06   -.57651E-04
  26  Prefactor     .98666        .83028E-01   -.22799E-07    .36171E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87078
  Prefactor  = 1.09255
  norm       = 3.94674
  Prefactor  = 0.0001
  Prefactor  = 0.494824
  Prefactor  = 12.7099
  Prefactor  = 3.72869
  Prefactor  = 0.0001
  norm       = 2.83027
  Prefactor  = 3.01176
  Prefactor  = 0.0001
  norm       = 5.35073
  Prefactor  = 0.0001
  norm       = 0.833577
  norm       = 1.41771
  Prefactor  = 28.7504
  norm       = 0.629834
  Prefactor  = 0.0001
  Prefactor  = 14.0529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7573
  Normalizat = 0.901635
  Prefactor  = 0.986663
 **********
 **   18 **HESSE 
 **********

 FCN=   9973.258     FROM HESSE     STATUS=OK           466 CALLS     3565 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8708        21.275        .30413E-03   -1.5434    
   4  Prefactor     1.0925        7.3982        .22809E-02   -1.5499    
   5  norm          3.9467        2.0571        .10039E-03   -1.5311    
   6  Prefactor     .10000E-03    4.9508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .49482        2.9692        .22809E-02   -1.5567    
   8  Prefactor     12.710        16.869        .11235E-03   -1.4995    
   9  Prefactor     3.7287        18.751        .10456E-02   -1.5322    
  10  Prefactor     .10000E-03    15.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8303        1.7476        .10102E-03   -1.5371    
  12  Prefactor     3.0118        3.4901        .19503E-03   -1.5361    
  13  Prefactor     .10000E-03    8.8094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3507        1.7029        .70402E-04   -1.5245    
  15  Prefactor     .10000E-03    3.2765        .17617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .83358        5.6928        .43150E-03   -1.5525    
  17  norm          1.4177        5.5110        .18174E-02   -1.5470    
  18  Prefactor     28.750        17.629        .74709E-04   -1.4635    
  19  norm          .62983        1.7616        .21403E-03   -1.5549    
  20  Prefactor     .10000E-03    6.6931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.053        29.736        .10685E-03   -1.4958    
  22  Prefactor     .10000E-03    20.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.757        8.3570        .10797E-03   -1.4966    
  25  Normalizat    .90163        .21206        .35892E-03   -.96403    
  26  Prefactor     .98666        .96806E-01    .16211E-03   -.93175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99707e-08
Minuit parameter uncertainties:
  1  4.49601e-05
  2  1.00313e-06
  3  12.623
  4  5.68683
  5  2.05718
  6  8.02184e-06
  7  2.42417
  8  16.8755
  9  16.7312
  10  4.09363e-06
  11  1.74766
  12  3.49035
  13  2.05087e-06
  14  1.70287
  15  5.61118e-07
  16  4.35711
  17  5.51296
  18  17.6322
  19  1.76177
  20  2.00378e-06
  21  29.7673
  22  2.94491e-05
  23  1.28249e-05
  24  8.35767
  25  0.212252
  26  0.0968227
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.376e+01  8.358e+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.867e-01  9.682e-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:  9.016e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 7.08e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.52e-05

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) = 9972.46561679
delta logL = 0.792649552204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9972.42092639
delta logL = 0.837339953159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4587       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1865       1.0000          .0000       10.000    
     3 'Normalizat'    .83451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0074       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=   9972.421     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      291 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4584        35.449        .81865E-04   -.19106E-02
   2  Index         3.1866        2.7184        .35819E-02   -.51625E-03
   3  Normalizat    .83441        .23247        .37151E-03   -.26262E-03
   4  Prefactor     1.0074        .10482        .16060E-03   -.68791E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45839
  Index      = 3.18663
  Normalizat = 0.834411
  Prefactor  = 1.0074
 **********
 **   18 **HESSE 
 **********

 FCN=   9972.421     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4584        6.6167        .32746E-05   -1.5336    
   2  Index         3.1866        .86195        .14328E-03   -.37114    
   3  Normalizat    .83441        .21086        .14860E-04   -.98805    
   4  Prefactor     1.0074        .97389E-01    .32121E-04   -.92483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83543e-09
Minuit parameter uncertainties:
  1  6.61806
  2  0.86694
  3  0.211063
  4  0.0974058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234670': 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) = 9972.42092625
delta logL = 0.837340094798

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  3.458e+00  6.618e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  3.187e+00  8.669e-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.007e+00  9.741e-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.344e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.54
Ra Dec: 359.755 39.367
Photon Index (Free Index): 3.19 +/- 0.87
Photon Flux (Free Index): 1.14e-07 +/- 5.67e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.05e-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/234670/cmap_HighResolution_303091201_303350401_4FGL_J2359.0+3922_daily_bin246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.08e-08', energy_flux2='2.09e-05', photon_flux_error='4.30e-08', dlogl='8.37e-01', energy_flux='2.49e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-30 11:50:15.425275', photon_index_error2='0.87', photon_index2='3.19', ts='4.65', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='0.90', time_epoch_completed='1633027815.43', return_code='0', job_id='234670', GAL2='1.01', EG2='0.83', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='5.67e-08', ts2='6.54', photon_index='2.35' WHERE bin_id='246' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:50:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 234670: <4FGL_J2359.0+3922_daily_bin246> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin246> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 11:35:36 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:35:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 11:35:38 2021
Terminated at Thu Sep 30 11:50:16 2021
Results reported at Thu Sep 30 11:50:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin246 359.755 39.3669 303091201 303350401 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 :                                   859.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

