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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin778
RA = 359.755, Dec = 39.3669
tmin = 440985601, tmax = 441244801
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='237383', job_status='RUN', time_executed='2021-09-30 11:45:50.354027', time_epoch_executed='1633027550.35' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237383

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237383/ft1_4FGL_J2359.0+3922_daily_bin778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237383/ft2_4FGL_J2359.0+3922_daily_bin778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237383/ft1_4FGL_J2359.0+3922_daily_bin778.fits outfile=/scratch/kocevski/237383/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin778.fits ra=359.755 dec=39.3669 rad=12.0 tmin=440985601.0 tmax=441244801.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.43
user 3.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/237383/ft2_4FGL_J2359.0+3922_daily_bin778.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/237383/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin778.fits evtable="EVENTS" outfile="/scratch/kocevski/237383/ft1_filtered_4FGL_J2359.0+3922_daily_bin778.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237383/ft1_filtered_4FGL_J2359.0+3922_daily_bin778.fits" evtable="EVENTS" scfile=/scratch/kocevski/237383/ft2_4FGL_J2359.0+3922_daily_bin778.fits sctable="SC_DATA" outfile=/scratch/kocevski/237383/ltcube_440985601_441244801_4FGL_J2359.0+3922_daily_bin778.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/237383/ft2_4FGL_J2359.0+3922_daily_bin778.fits
.....................!
real 12.22
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237383/ft1_filtered_4FGL_J2359.0+3922_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/237383/ft2_4FGL_J2359.0+3922_daily_bin778.fits sctable="SC_DATA" expcube=/scratch/kocevski/237383/ltcube_440985601_441244801_4FGL_J2359.0+3922_daily_bin778.fits outfile=/scratch/kocevski/237383/expmap_440985601_441244801_4FGL_J2359.0+3922_daily_bin778.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/237383/ltcube_440985601_441244801_4FGL_J2359.0+3922_daily_bin778.fits
.....................!
real 190.62
user 184.96
sys 5.28

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/237383/ft1_filtered_4FGL_J2359.0+3922_daily_bin778.fits scfile=/scratch/kocevski/237383/ft2_4FGL_J2359.0+3922_daily_bin778.fits outfile=/scratch/kocevski/237383/cmap_440985601_441244801_4FGL_J2359.0+3922_daily_bin778.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37909E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9946       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0935       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7403       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1244       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.736       1.0000         .10000E-03   10000.    
    11 'norm      '    .92768       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9478       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4683       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3190       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9468       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.350       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6694       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.681       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3141       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0418       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86906       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=   9284.649     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3104 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.155       -.10049E-05** at limit **
   2  Prefactor     .10007E-03    7.5288        .14003E-06** at limit **
   3  norm          .10000E-03    3.3307        .48054E-07** at limit **
   4  Prefactor     2.9945        3.1438       -.10860E-06   -.54561E-04
   5  norm          3.0935        2.1007       -.10875E-06   -.30727E-03
   6  Prefactor     3.7393        7.0918       -.65707E-06   -.27123E-03
   7  Prefactor     .10000E-03    1.3146        .76220E-07** at limit **
   8  Prefactor     4.1209        10.740       -.72511E-06   -.11541E-03
   9  Prefactor     8.8580        21.555       -.16950E-05    .19273E-04
  10  Prefactor     23.735        25.025       -.47130E-06    .16578E-04
  11  norm          .92789        1.8436       -.73845E-06   -.14906E-02
  12  Prefactor     3.9482        6.5054        .40280E-06   -.44087E-03
  13  Prefactor     1.4388        78.363       -.19254E-04    .31464E-04
  14  norm          1.3190        1.1304        .82032E-07    .41322E-04
  15  Prefactor     4.9474        8.6132       -.98270E-07   -.76081E-04
  16  norm          .10000E-03    1.7232       -.91870E-07** at limit **
  17  norm          10.350        8.2451       -.40123E-07    .23789E-04
  18  Prefactor     .10000E-03    5.3795        .17641E-06** at limit **
  19  norm          1.6697        2.3930       -.42109E-06   -.95075E-03
  20  Prefactor     .10000E-03    11.631       -.24410E-05** at limit **
  21  Prefactor     .10000E-03    12.051        .33318E-05** at limit **
  22  Prefactor     43.678        35.228       -.26662E-05    .16110E-03
  23  Prefactor     .10000E-03    22.174        .93594E-06** at limit **
  24  Prefactor     7.3148        5.9154        .12531E-06   -.20209E-03
  25  Normalizat    1.0419        .18709        .10320E-05    .54675E-04
  26  Prefactor     .86898        .81318E-01    .30206E-06    .16706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100069
  norm       = 0.0001
  Prefactor  = 2.99451
  norm       = 3.09348
  Prefactor  = 3.73928
  Prefactor  = 0.0001
  Prefactor  = 4.12094
  Prefactor  = 8.858
  Prefactor  = 23.7355
  norm       = 0.92789
  Prefactor  = 3.94822
  Prefactor  = 1.43879
  norm       = 1.31897
  Prefactor  = 4.94742
  norm       = 0.0001
  norm       = 10.3503
  Prefactor  = 0.0001
  norm       = 1.66973
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 43.6781
  Prefactor  = 0.0001
  Prefactor  = 7.31479
  Normalizat = 1.04192
  Prefactor  = 0.868981
 **********
 **   18 **HESSE 
 **********

 FCN=   9284.649     FROM HESSE     STATUS=OK           462 CALLS     3566 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10007E-03    76.973        .50523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.3336        .17172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9945        3.1403        .16982E-03   -1.5362    
   5  norm          3.0935        2.1021        .11154E-03   -1.5356    
   6  Prefactor     3.7393        7.2533        .20878E-03   -1.5321    
   7  Prefactor     .10000E-03    1.3461        .21534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1209        10.753        .19849E-03   -1.5302    
   9  Prefactor     8.8580        21.576        .13466E-03   -1.5113    
  10  Prefactor     23.735        25.028        .82219E-04   -1.4733    
  11  norm          .92789        1.9415        .19031E-03   -1.5515    
  12  Prefactor     3.9482        6.4724        .20302E-03   -1.5311    
  13  Prefactor     1.4388        80.891        .35475E-03   -1.5468    
  14  norm          1.3190        1.1290        .38325E-04   -1.5478    
  15  Prefactor     4.9474        8.5835        .18083E-03   -1.5263    
  16  norm          .10000E-03    1.7369        .12351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.350        8.2429        .12455E-03   -1.5064    
  18  Prefactor     .10000E-03    5.3918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6697        2.4310        .17364E-03   -1.5450    
  20  Prefactor     .10000E-03    11.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     43.678        35.130        .60659E-04   -1.4385    
  23  Prefactor     .10000E-03    22.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.3148        5.9086        .14831E-03   -1.5167    
  25  Normalizat    1.0419        .22029        .32159E-03   -.91639    
  26  Prefactor     .86898        .96173E-01    .16286E-03   -.97234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84326e-09
Minuit parameter uncertainties:
  1  5.0695e-05
  2  0.00460632
  3  3.17518e-06
  4  3.14051
  5  2.10216
  6  7.25502
  7  4.00997e-06
  8  10.7578
  9  21.5946
  10  25.0392
  11  1.94161
  12  6.47358
  13  21.6064
  14  1.12899
  15  8.58561
  16  4.58443e-07
  17  8.24378
  18  8.74914e-06
  19  2.43111
  20  0.000139192
  21  0.000194491
  22  35.1464
  23  8.8636e-05
  24  5.9091
  25  0.220483
  26  0.0961921
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  7.315e+00  5.909e+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:  8.690e-01  9.619e-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:  1.042e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.03
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.07e-05

TS (Fixed Index): 3.03
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/237383/likelihoodResults_440985601_441244801_4FGL_J2359.0+3922_daily_bin778.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) = 9284.64519307
delta logL = 0.00340310961656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9284.64083713
delta logL = 0.00775905106457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1225       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2580       1.0000          .0000       10.000    
     3 'Normalizat'    1.0455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86806       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9284.641     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      274 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1248        10.311        .70338E-03   -.77905E-05
   2  Index         2.2579        .80298        .83819E-02    .57373E-03
   3  Normalizat    1.0455        .19853        .32111E-03   -.38236E-05
   4  Prefactor     .86805        .92161E-01    .16294E-03    .23723E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.12479
  Index      = 2.25793
  Normalizat = 1.04549
  Prefactor  = 0.868052
 **********
 **   18 **HESSE 
 **********

 FCN=   9284.641     FROM HESSE     STATUS=OK            27 CALLS      301 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1248        9.2657        .28135E-04   -1.5138    
   2  Index         2.2579        .72203        .16764E-02   -.58047    
   3  Normalizat    1.0455        .19817        .12844E-04   -.91522    
   4  Prefactor     .86805        .92121E-01    .65176E-05   -.97267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06151e-12
Minuit parameter uncertainties:
  1  9.26729
  2  0.725671
  3  0.198306
  4  0.0921371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237383': 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) = 9284.64083709
delta logL = 0.00775908315154

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  8.125e+00  9.267e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.258e+00  7.257e-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:  8.681e-01  9.214e-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:  1.045e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 359.755 39.367
Photon Index (Free Index): 2.26 +/- 0.73
Photon Flux (Free Index): 3.49e-08 +/- 3.62e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.41e-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/237383/cmap_HighResolution_440985601_441244801_4FGL_J2359.0+3922_daily_bin778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='1.41e-05', photon_flux_error='3.04e-08', dlogl='7.76e-03', energy_flux='1.33e-05', photon_flux2='3.49e-08', job_status='DONE', time_completed='2021-09-30 12:01:19.831666', photon_index_error2='0.73', photon_index2='2.26', ts='3.03', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.41e-05', EG='1.04', time_epoch_completed='1633028479.83', return_code='0', job_id='237383', GAL2='0.87', EG2='1.05', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.62e-08', ts2='3.05', photon_index='2.35' WHERE bin_id='778' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:01:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 237383: <4FGL_J2359.0+3922_daily_bin778> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin778 359.755 39.3669 440985601 441244801 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 :                                   925.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

