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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1035
RA = 346.173, Dec = 37.0826
tmin = 507600001, tmax = 507859201
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='661737', job_status='RUN', time_executed='2021-09-29 06:40:35.291215', time_epoch_executed='1632922835.29' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/661737

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/661737/ft1_4FGL_J2304.6+3704_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/661737/ft2_4FGL_J2304.6+3704_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/661737/ft1_4FGL_J2304.6+3704_daily_bin1035.fits outfile=/scratch/kocevski/661737/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1035.fits ra=346.173 dec=37.0826 rad=12.0 tmin=507600001.0 tmax=507859201.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.57
user 3.34
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/661737/ft2_4FGL_J2304.6+3704_daily_bin1035.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/661737/ft2_4FGL_J2304.6+3704_daily_bin1035.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/661737/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1035.fits evtable="EVENTS" outfile="/scratch/kocevski/661737/ft1_filtered_4FGL_J2304.6+3704_daily_bin1035.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.62
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/661737/ft1_filtered_4FGL_J2304.6+3704_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/661737/ft2_4FGL_J2304.6+3704_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/661737/ltcube_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.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/661737/ft2_4FGL_J2304.6+3704_daily_bin1035.fits
.....................!
real 12.42
user 11.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/661737/ft1_filtered_4FGL_J2304.6+3704_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/661737/ft2_4FGL_J2304.6+3704_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/661737/ltcube_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.fits outfile=/scratch/kocevski/661737/expmap_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.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/661737/ltcube_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.fits
.....................!
real 190.79
user 185.66
sys 4.54

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 155 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 J2304.6+3704 @ 346.173 37.0826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/661737/ft1_filtered_4FGL_J2304.6+3704_daily_bin1035.fits scfile=/scratch/kocevski/661737/ft2_4FGL_J2304.6+3704_daily_bin1035.fits outfile=/scratch/kocevski/661737/cmap_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.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=346.173 yref=37.0826 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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/661737/ft1_filtered_4FGL_J2304.6+3704_daily_bin1035.fits scfile=/scratch/kocevski/661737/ft2_4FGL_J2304.6+3704_daily_bin1035.fits outfile=/scratch/kocevski/661737/cmap_HighResolution_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.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=346.173 yref=37.0826 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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/661737/ft1_filtered_4FGL_J2304.6+3704_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/661737/ft2_4FGL_J2304.6+3704_daily_bin1035.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/661737/Model_4FGL_J2304.6+3704_daily_bin1035.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/661737/ft1_filtered_4FGL_J2304.6+3704_daily_bin1035.fits.....................!
real 118.34
user 116.87
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/661737/ft1_filtered_4FGL_J2304.6+3704_daily_bin1035.fits', '/scratch/kocevski/661737/ft2_4FGL_J2304.6+3704_daily_bin1035.fits', expMap='/scratch/kocevski/661737/expmap_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.fits', expCube='/scratch/kocevski/661737/ltcube_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/661737/Model_4FGL_J2304.6+3704_daily_bin1035.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.6+3704'

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/661737/ft1_filtered_4FGL_J2304.6+3704_daily_bin1035.fits
Spacecraft file(s): /scratch/kocevski/661737/ft2_4FGL_J2304.6+3704_daily_bin1035.fits
Exposure map: /scratch/kocevski/661737/expmap_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.fits
Exposure cube: /scratch/kocevski/661737/ltcube_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/661737/Model_4FGL_J2304.6+3704_daily_bin1035.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) = 10302.4346397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1737       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7938       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .95546       1.0000         .10000E-03   10000.    
     5 'norm      '    18.232       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7314       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.729       1.0000         .10000E-03   10000.    
    13 'norm      '    .10604E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6881       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5524       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8313       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3690       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89703       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10302.32     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2541 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1739        1.3251        .38995E-07    .35173E-03
   2  Prefactor     .10000E-03    29.353       -.23486E-04** at limit **
   3  Prefactor     1.7946        4.5100       -.12452E-05   -.10293E-02
   4  Prefactor     .93246        11.241       -.23633E-05   -.36768E-04
   5  norm          18.232        5.7694        .13744E-06   -.14560E-03
   6  Prefactor     .10000E-03    15.110       -.20984E-05** at limit **
   7  Prefactor     .10000E-03    5.8020        .28233E-05** at limit **
   8  Prefactor     .10000E-03    23.885        .10345E-04** at limit **
   9  norm          1.7313        1.3000       -.46170E-07   -.42758E-03
  10  Prefactor     .10000E-03    98.001       -.23182E-04** at limit **
  11  Prefactor     .10000E-03    6.0388       -.35482E-05** at limit **
  12  Prefactor     18.724        20.845        .51434E-06    .71106E-04
  13  norm          .10000E-03    5.0619       -.28325E-07** at limit **
  14  norm          8.6881        7.3569        .41189E-07    .25431E-04
  15  Prefactor     1.5551        45.501       -.39580E-05   -.11365E-03
  16  norm          2.8312        2.5438       -.16008E-06   -.56513E-03
  17  Prefactor     .10000E-03    4.5424        .54937E-07** at limit **
  18  Prefactor     .10000E-03    23.535        .15367E-04** at limit **
  19  Prefactor     .10000E-03    28.560       -.21363E-04** at limit **
  20  Prefactor     .10000E-03    43.729        .34864E-04** at limit **
  21  Prefactor     .10000E-03    6.7500        .81830E-06** at limit **
  22  Normalizat    1.3690        .21905        .79958E-06    .19482E-03
  23  Prefactor     .89699        .80531E-01   -.70989E-07    .34114E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.1739
  Prefactor  = 0.0001
  Prefactor  = 1.7946
  Prefactor  = 0.932459
  norm       = 18.2318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.73131
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 18.724
  norm       = 0.0001
  norm       = 8.68808
  Prefactor  = 1.55514
  norm       = 2.83116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36902
  Prefactor  = 0.896993
 **********
 **   18 **HESSE 
 **********

 FCN=   10302.32     FROM HESSE     STATUS=OK           368 CALLS     2909 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1739        1.3178        .84605E-04   -1.5413    
   2  Prefactor     .10000E-03    29.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7946        4.4781        .31224E-03   -1.5440    
   4  Prefactor     .93246        54.506        .63230E-02   -1.5515    
   5  norm          18.232        5.7308        .93801E-04   -1.4854    
   6  Prefactor     .10000E-03    15.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7313        1.2907        .95897E-04   -1.5445    
  10  Prefactor     .10000E-03    100.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.0738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.724        20.815        .92548E-04   -1.4842    
  13  norm          .10000E-03    5.1088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6881        7.3573        .13599E-03   -1.5118    
  15  Prefactor     1.5551        45.221        .34180E-03   -1.5459    
  16  norm          2.8312        2.5366        .14831E-03   -1.5371    
  17  Prefactor     .10000E-03    4.5431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3690        .25486        .37030E-03   -.81529    
  23  Prefactor     .89699        .94545E-01    .16988E-03   -.96246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53888e-08
Minuit parameter uncertainties:
  1  1.31786
  2  1.53834e-06
  3  4.47892
  4  14.2711
  5  5.73096
  6  3.3722e-06
  7  8.18136e-06
  8  2.72132e-05
  9  1.29076
  10  0.000792823
  11  3.07285e-06
  12  20.8234
  13  4.36548e-05
  14  7.35811
  15  16.7855
  16  2.5367
  17  1.206e-07
  18  6.01492e-06
  19  1.61026e-05
  20  6.7674e-05
  21  2.96928e-05
  22  0.255092
  23  0.0945624
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  2.721e-05  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.970e-01  9.456e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.369e+00  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 5.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/661737/likelihoodResults_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10302.3247122
delta logL = -0.000198653675398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10302.324514
delta logL = -4.35655238107e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82295E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2018       1.0000          .0000       10.000    
     3 'Normalizat'    1.3690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89699       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10302.28     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      295 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59964        3.2117        .10443E-01   -.26809E-02
   2  Index         2.9736        1.2445        .61406E-01    .45517E-03
   3  Normalizat    1.3559        .21497        .83978E-01    .19137E-04
   4  Prefactor     .89831        .80099E-01    .44967E-01   -.76293E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.599638
  Index      = 2.97355
  Normalizat = 1.35587
  Prefactor  = 0.898314
 **********
 **   18 **HESSE 
 **********

 FCN=   10302.28     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      328 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59964        309.48        .24406E-03   -1.5863    
   2  Index         2.9736        6.7237        .18146E-01   -.41730    
   3  Normalizat    1.3559        .17108        .37179E-03   -.81914    
   4  Prefactor     .89831        .64064E-01    .16976E-03   -.96200    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.92568e-08
Minuit parameter uncertainties:
  1  27.3862
  2  13.7697
  3  0.171154
  4  0.0640695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/661737': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10302.276791
delta logL = 0.0477225353588

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  5.996e-01  2.739e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  2.974e+00  1.377e+01  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.983e-01  6.407e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.356e+00  1.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.173 37.083

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/661737/cmap_HighResolution_507600001_507859201_4FGL_J2304.6+3704_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-09-29 06:55:04.370591', job_id='661737', GAL2='0.90', fit_tolerance='1e-08', EG2='1.36', EG='1.37', time_epoch_completed='1632923704.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.77e-02', ts2='0.10', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1035' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:55:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 661737: <4FGL_J2304.6+3704_daily_bin1035> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1035> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:40:12 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:40:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 06:40:14 2021
Terminated at Wed Sep 29 06:55:05 2021
Results reported at Wed Sep 29 06:55:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1035 346.173 37.0826 507600001 507859201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.6+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   865.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

