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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1478
RA = 359.755, Dec = 39.3669
tmin = 622425601, tmax = 622684801
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='240754', job_status='RUN', time_executed='2021-09-30 11:56:04.261083', time_epoch_executed='1633028164.26' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240754

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240754/ft1_4FGL_J2359.0+3922_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240754/ft2_4FGL_J2359.0+3922_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240754/ft1_4FGL_J2359.0+3922_daily_bin1478.fits outfile=/scratch/kocevski/240754/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1478.fits ra=359.755 dec=39.3669 rad=12.0 tmin=622425601.0 tmax=622684801.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 4.29
user 4.03
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240754/ft2_4FGL_J2359.0+3922_daily_bin1478.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/240754/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1478.fits evtable="EVENTS" outfile="/scratch/kocevski/240754/ft1_filtered_4FGL_J2359.0+3922_daily_bin1478.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240754/ft1_filtered_4FGL_J2359.0+3922_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/240754/ft2_4FGL_J2359.0+3922_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/240754/ltcube_622425601_622684801_4FGL_J2359.0+3922_daily_bin1478.fits outfile=/scratch/kocevski/240754/expmap_622425601_622684801_4FGL_J2359.0+3922_daily_bin1478.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/240754/ltcube_622425601_622684801_4FGL_J2359.0+3922_daily_bin1478.fits
.....................!
real 191.77
user 185.70
sys 5.58

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/240754/ft1_filtered_4FGL_J2359.0+3922_daily_bin1478.fits scfile=/scratch/kocevski/240754/ft2_4FGL_J2359.0+3922_daily_bin1478.fits outfile=/scratch/kocevski/240754/cmap_622425601_622684801_4FGL_J2359.0+3922_daily_bin1478.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240754/ft1_filtered_4FGL_J2359.0+3922_daily_bin1478.fits scfile=/scratch/kocevski/240754/ft2_4FGL_J2359.0+3922_daily_bin1478.fits outfile=/scratch/kocevski/240754/cmap_HighResolution_622425601_622684801_4FGL_J2359.0+3922_daily_bin1478.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8624       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.595       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9442       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4485       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.342       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6759       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5979       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9348       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30669E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30652E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.1822       1.0000         .10000E-03   10000.    
    17 'norm      '    14.126       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5075       1.0000         .10000E-03   10000.    
    19 'norm      '    4.4967       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    65.409       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.230       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98860       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95326       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=   9951.055     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3114 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8524        57.804        .53743E-05    .15607E-03
   2  Prefactor     34.598        21.828       -.56154E-06   -.12358E-03
   3  norm          .10000E-03    7.8193        .12898E-05** at limit **
   4  Prefactor     .10000E-03    8.4646        .36164E-06** at limit **
   5  norm          1.9439        1.3891       -.11645E-07   -.20441E-03
   6  Prefactor     .10000E-03    2.0839       -.28285E-06** at limit **
   7  Prefactor     .10000E-03    .84933       -.58939E-07** at limit **
   8  Prefactor     7.4480        13.847       -.49386E-07    .23132E-04
   9  Prefactor     24.335        25.746        .17488E-05    .36605E-03
  10  Prefactor     3.6771        25.218       -.69239E-06   -.10300E-04
  11  norm          2.5981        1.8896       -.11340E-07    .15190E-04
  12  Prefactor     5.9369        5.9390       -.23796E-06   -.28606E-04
  13  Prefactor     .10003E-03    53.105       -.15866E-04** at limit **
  14  norm          .15997E-03    1.6714       -.22929E-05** at limit **
  15  Prefactor     .10000E-03    10.549       -.11468E-06** at limit **
  16  norm          9.1821        5.8239        .16642E-06    .22634E-03
  17  norm          14.124        10.038       -.14680E-07   -.73237E-05
  18  Prefactor     7.5123        19.564       -.96374E-06   -.62988E-04
  19  norm          4.4964        2.3506       -.44301E-08    .74222E-04
  20  Prefactor     .10000E-03    4.6107        .28656E-07** at limit **
  21  Prefactor     65.403        45.090        .12871E-05    .23440E-03
  22  Prefactor     .10000E-03    13.460        .42716E-06** at limit **
  23  Prefactor     .10000E-03    27.205       -.43058E-06** at limit **
  24  Prefactor     11.231        6.8762       -.69452E-06    .43811E-03
  25  Normalizat    .98822        .18730       -.18890E-06    .82320E-04
  26  Prefactor     .95346        .83508E-01    .72457E-07    .26127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.85237
  Prefactor  = 34.5982
  norm       = 0.000100002
  Prefactor  = 0.000100001
  norm       = 1.94395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44801
  Prefactor  = 24.3346
  Prefactor  = 3.67705
  norm       = 2.59814
  Prefactor  = 5.93685
  Prefactor  = 0.000100033
  norm       = 0.000159972
  Prefactor  = 0.0001
  norm       = 9.18209
  norm       = 14.1239
  Prefactor  = 7.51226
  norm       = 4.49639
  Prefactor  = 0.0001
  Prefactor  = 65.4031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2306
  Normalizat = 0.988225
  Prefactor  = 0.953457
 **********
 **   18 **HESSE 
 **********

 FCN=   9951.055     FROM HESSE     STATUS=OK           468 CALLS     3582 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8524        60.097        .20533E-03   -1.5315    
   2  Prefactor     34.598        21.854        .68132E-04   -1.4531    
   3  norm          .10000E-03    8.0025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9439        1.3933        .96750E-04   -1.5429    
   6  Prefactor     .10000E-03    4.3544        .27889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .85922        .89712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4480        13.834        .14695E-03   -1.5162    
   9  Prefactor     24.335        26.257        .81190E-04   -1.4721    
  10  Prefactor     3.6771        25.186        .21067E-03   -1.5324    
  11  norm          2.5981        1.8882        .11361E-03   -1.5386    
  12  Prefactor     5.9369        5.9320        .16483E-03   -1.5221    
  13  Prefactor     .10003E-03    53.802        .58704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .15997E-03    1.1343        .24158E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.1821        5.8048        .13226E-03   -1.5102    
  17  norm          14.124        10.046        .10657E-03   -1.4956    
  18  Prefactor     7.5123        19.515        .14637E-03   -1.5160    
  19  norm          4.4964        2.3495        .10700E-03   -1.5284    
  20  Prefactor     .10000E-03    4.6122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     65.403        45.335        .49622E-04   -1.4089    
  22  Prefactor     .10000E-03    13.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.231        6.9216        .59774E-03   -1.5038    
  25  Normalizat    .98822        .21572        .34989E-03   -.93426    
  26  Prefactor     .95346        .97144E-01    .16645E-03   -.94297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42995e-09
Minuit parameter uncertainties:
  1  30.4673
  2  21.8586
  3  0.000233609
  4  0.00014643
  5  1.39333
  6  4.5611e-05
  7  2.22894e-06
  8  13.8396
  9  26.2699
  10  19.2582
  11  1.88828
  12  5.93261
  13  0.00267122
  14  0.0164959
  15  1.38775e-05
  16  5.80517
  17  10.0474
  18  19.5311
  19  2.34951
  20  6.65478e-06
  21  45.3588
  22  0.000105381
  23  6.46865e-05
  24  6.92206
  25  0.21591
  26  0.0971618
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.123e+01  6.922e+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.535e-01  9.716e-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.882e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.98
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 5.78e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.25e-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) = 9951.02261408
delta logL = 0.032613246949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9951.02104278
delta logL = 0.0341845435869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5081       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4806       1.0000          .0000       10.000    
     3 'Normalizat'    .98030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95533       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=   9951.021     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      295 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5072        10.070        .12996E-03    .35270E-03
   2  Index         2.4805        .58358        .58980E-02    .10393E-03
   3  Normalizat    .98030        .20625        .35112E-03   -.24213E-03
   4  Prefactor     .95537        .95712E-01    .16629E-03   -.62464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.50718
  Index      = 2.48053
  Normalizat = 0.980302
  Prefactor  = 0.955368
 **********
 **   18 **HESSE 
 **********

 FCN=   9951.021     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5072        8.8856        .51986E-05   -1.5091    
   2  Index         2.4805        .51471        .23592E-03   -.52810    
   3  Normalizat    .98030        .20587        .14045E-04   -.93693    
   4  Prefactor     .95537        .95658E-01    .33258E-04   -.94232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82836e-10
Minuit parameter uncertainties:
  1  8.88682
  2  0.515941
  3  0.206038
  4  0.0956745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240754': 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) = 9951.02104248
delta logL = 0.0341848475273

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  9.507e+00  8.887e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.481e+00  5.159e-01  0.000e+00  1.000e+01 (-1.000e+00)
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  9.554e-01  9.567e-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.803e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.05
Ra Dec: 359.755 39.367
Photon Index (Free Index): 2.48 +/- 0.52
Photon Flux (Free Index): 6.45e-08 +/- 4.51e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.22e-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/240754/cmap_HighResolution_622425601_622684801_4FGL_J2359.0+3922_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.78e-08', energy_flux2='1.91e-05', photon_flux_error='3.56e-08', dlogl='3.42e-02', energy_flux='2.04e-05', photon_flux2='6.45e-08', job_status='DONE', time_completed='2021-09-30 12:10:48.304688', photon_index_error2='0.52', photon_index2='2.48', ts='4.98', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.99', time_epoch_completed='1633029048.3', return_code='0', job_id='240754', GAL2='0.96', EG2='0.98', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.51e-08', ts2='5.05', photon_index='2.35' WHERE bin_id='1478' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:10:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 240754: <4FGL_J2359.0+3922_daily_bin1478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1478 359.755 39.3669 622425601 622684801 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 :                                   853.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

