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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin775
RA = 346.173, Dec = 37.0826
tmin = 440208001, tmax = 440467201
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='659710', job_status='RUN', time_executed='2021-09-29 06:35:43.603922', time_epoch_executed='1632922543.6' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659710/ft1_4FGL_J2304.6+3704_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659710/ft2_4FGL_J2304.6+3704_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659710/ft1_4FGL_J2304.6+3704_daily_bin775.fits outfile=/scratch/kocevski/659710/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin775.fits ra=346.173 dec=37.0826 rad=12.0 tmin=440208001.0 tmax=440467201.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.45
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659710/ft2_4FGL_J2304.6+3704_daily_bin775.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/659710/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin775.fits evtable="EVENTS" outfile="/scratch/kocevski/659710/ft1_filtered_4FGL_J2304.6+3704_daily_bin775.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659710/ft1_filtered_4FGL_J2304.6+3704_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/659710/ft2_4FGL_J2304.6+3704_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/659710/ltcube_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.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/659710/ft2_4FGL_J2304.6+3704_daily_bin775.fits
.....................!
real 11.68
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659710/ft1_filtered_4FGL_J2304.6+3704_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/659710/ft2_4FGL_J2304.6+3704_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/659710/ltcube_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.fits outfile=/scratch/kocevski/659710/expmap_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.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/659710/ltcube_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.fits
.....................!
real 189.42
user 184.84
sys 4.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 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/659710/ft1_filtered_4FGL_J2304.6+3704_daily_bin775.fits scfile=/scratch/kocevski/659710/ft2_4FGL_J2304.6+3704_daily_bin775.fits outfile=/scratch/kocevski/659710/cmap_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659710/ft1_filtered_4FGL_J2304.6+3704_daily_bin775.fits scfile=/scratch/kocevski/659710/ft2_4FGL_J2304.6+3704_daily_bin775.fits outfile=/scratch/kocevski/659710/cmap_HighResolution_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659710/ft1_filtered_4FGL_J2304.6+3704_daily_bin775.fits', '/scratch/kocevski/659710/ft2_4FGL_J2304.6+3704_daily_bin775.fits', expMap='/scratch/kocevski/659710/expmap_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.fits', expCube='/scratch/kocevski/659710/ltcube_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659710/Model_4FGL_J2304.6+3704_daily_bin775.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/659710/ft1_filtered_4FGL_J2304.6+3704_daily_bin775.fits
Spacecraft file(s): /scratch/kocevski/659710/ft2_4FGL_J2304.6+3704_daily_bin775.fits
Exposure map: /scratch/kocevski/659710/expmap_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.fits
Exposure cube: /scratch/kocevski/659710/ltcube_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659710/Model_4FGL_J2304.6+3704_daily_bin775.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) = 10682.3375105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    31.899       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.308       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.227       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3083       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.299       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19654E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.7786       1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.457       1.0000         .10000E-03   10000.    
    16 'norm      '    .59052       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .47510E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.238       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.765       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89983       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94651       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10682.31     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     3031 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7837        1.7850        .29750E-03    .55028E-05
   2  Prefactor     .10000E-03    21.808        .18142E-02** at limit **
   3  Prefactor     .10000E-03    3.0459        .17548E-02** at limit **
   4  Prefactor     .10000E-03    10.564        .18142E-02** at limit **
   5  norm          31.899        6.7305        .70945E-04    .72431E-04
   6  Prefactor     4.7612        10.020        .18439E-03   -.13564E-05
   7  Prefactor     11.307        9.0913        .11913E-03    .40843E-04
   8  Prefactor     10.213        20.273        .12529E-03    .83479E-05
   9  norm          2.3084        1.3940        .90287E-04    .59937E-04
  10  Prefactor     25.299        17.874        .79643E-04    .85648E-06
  11  Prefactor     .10005E-03    9.3361        .73745E-01** at limit **
  12  Prefactor     .10000E-03    6.8712        .18142E-02** at limit **
  13  norm          .10000E-03    8.2254        .36285E-03** at limit **
  14  norm          7.7784        7.7399        .14378E-03    .20875E-04
  15  Prefactor     45.442        19.326        .59467E-04    .15676E-04
  16  norm          .58989        2.2946        .29067E-03    .10427E-03
  17  Prefactor     .10006E-03    8.1883        .10600    ** at limit **
  18  Prefactor     .10000E-03    56.757        .18142E-02** at limit **
  19  Prefactor     22.237        26.989        .84938E-04   -.10708E-05
  20  Prefactor     .10000E-03    70.613        .18142E-02** at limit **
  21  Prefactor     24.758        9.9633        .80494E-04   -.24858E-03
  22  Normalizat    .89981        .24859        .42908E-03    .63907E-04
  23  Prefactor     .94648        .91718E-01    .16465E-03    .81088E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.7837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.8993
  Prefactor  = 4.76124
  Prefactor  = 11.3074
  Prefactor  = 10.2132
  norm       = 2.30839
  Prefactor  = 25.2988
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.77837
  Prefactor  = 45.442
  norm       = 0.589888
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 22.2372
  Prefactor  = 0.0001
  Prefactor  = 24.7578
  Normalizat = 0.899806
  Prefactor  = 0.946484
 **********
 **   18 **HESSE 
 **********

 FCN=   10682.31     FROM HESSE     STATUS=OK           366 CALLS     3397 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7837        1.7851        .11900E-04   -1.5115    
   2  Prefactor     .10000E-03    21.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0464        .35096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.565        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          31.899        6.7302        .28378E-05   -1.4578    
   6  Prefactor     4.7612        10.021        .73756E-05   -1.5272    
   7  Prefactor     11.307        9.0912        .47653E-05   -1.5035    
   8  Prefactor     10.213        20.273        .50117E-05   -1.5069    
   9  norm          2.3084        1.3940        .36115E-05   -1.5404    
  10  Prefactor     25.299        17.877        .31857E-05   -1.4702    
  11  Prefactor     .10005E-03    8.4075        .78991E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.2258        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.7784        7.7396        .57510E-05   -1.5150    
  15  Prefactor     45.442        19.330        .23787E-05   -1.4359    
  16  norm          .58989        2.2934        .11627E-04   -1.5554    
  17  Prefactor     .10006E-03    8.0602        .10799       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    56.762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.237        26.987        .33975E-05   -1.4764    
  20  Prefactor     .10000E-03    70.617        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.758        9.9631        .32198E-05   -1.4712    
  22  Normalizat    .89981        .24876        .17163E-04   -.96467    
  23  Prefactor     .94648        .91767E-01    .32931E-04   -.94535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09648e-10
Minuit parameter uncertainties:
  1  1.78506
  2  5.15952e-06
  3  2.05374e-05
  4  3.24254e-06
  5  6.73036
  6  10.0243
  7  9.09235
  8  20.2863
  9  1.39402
  10  17.8811
  11  0.00132709
  12  5.33355e-07
  13  8.56626e-06
  14  7.74063
  15  19.3331
  16  2.29375
  17  0.00140805
  18  0.000180708
  19  27.0021
  20  0.000228548
  21  9.96376
  22  0.249075
  23  0.0917823
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.021e+01  2.029e+01  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:  9.465e-01  9.178e-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:  8.998e-01  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/659710/likelihoodResults_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.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) = 10682.1363096
delta logL = 0.178155183186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10682.1262116
delta logL = 0.188253129767

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10682.13     FROM MIGRAD    STATUS=FAILED        98 CALLS      309 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9274        357.10        .10178E-02   -.37232E-03
   2  Index         2.5505        5.7767        .91149E-02    .12304E-02
   3  Normalizat    .88132        .22340        .43313E-03   -.11181E-03
   4  Prefactor     .94933        .76998E-01    .16441E-03   -.27397E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10682.13     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      397 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9274        357.10        .36319E-03   -.37232E-03
   2  Index         2.5505        5.7767        .15192E-02    .12304E-02
   3  Normalizat    .88132        .22340        .16230E-03   -.11181E-03
   4  Prefactor     .94933        .76998E-01    .63639E-04   -.27397E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10682.13     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      430 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9277        16.767        .40713E-04   -.26807E-04
   2  Index         2.5505        1.5680        .18230E-02   -.42282E-05
   3  Normalizat    .88132        .23107        .17325E-04   -.73493E-05
   4  Prefactor     .94933        .90039E-01    .32882E-04   -.58085E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.92766
  Index      = 2.5505
  Normalizat = 0.88132
  Prefactor  = 0.949328
 **********
 **   18 **HESSE 
 **********

 FCN=   10682.13     FROM HESSE     STATUS=OK            25 CALLS      455 TOTAL
                     EDM=   .63E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9277        13.360        .16285E-05   -1.5312    
   2  Index         2.5505        1.2999        .72919E-04   -.51198    
   3  Normalizat    .88132        .22976        .34651E-05   -.97120    
   4  Prefactor     .94933        .89753E-01    .65763E-05   -.94438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30644e-13
Minuit parameter uncertainties:
  1  13.3702
  2  1.32003
  3  0.230018
  4  0.0897674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659710': 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) = 10682.1262114
delta logL = 0.188253343138

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  3.928e+00  1.337e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  2.550e+00  1.320e+00  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:  9.493e-01  8.977e-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:  8.813e-01  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
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/659710/cmap_HighResolution_440208001_440467201_4FGL_J2304.6+3704_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-29 06:51:51.863465', job_id='659710', GAL2='0.95', fit_tolerance='1e-08', EG2='0.88', EG='0.90', time_epoch_completed='1632923511.86', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.88e-01', ts2='0.70', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='775' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:51:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 659710: <4FGL_J2304.6+3704_daily_bin775> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin775> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:35:23 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:35:25 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:35:25 2021
Terminated at Wed Sep 29 06:51:52 2021
Results reported at Wed Sep 29 06:51:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin775 346.173 37.0826 440208001 440467201 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 :                                   966.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

