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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin368
RA = 346.922, Dec = 14.8644
tmin = 334713601, tmax = 334972801
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='666411', job_status='RUN', time_executed='2021-09-29 06:55:29.327495', time_epoch_executed='1632923729.33' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666411

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666411/ft1_4FGL_J2307.6+1451_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666411/ft2_4FGL_J2307.6+1451_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666411/ft1_4FGL_J2307.6+1451_daily_bin368.fits outfile=/scratch/kocevski/666411/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin368.fits ra=346.922 dec=14.8644 rad=12.0 tmin=334713601.0 tmax=334972801.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.50
user 3.27
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/666411/ft2_4FGL_J2307.6+1451_daily_bin368.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/666411/ft2_4FGL_J2307.6+1451_daily_bin368.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/666411/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin368.fits evtable="EVENTS" outfile="/scratch/kocevski/666411/ft1_filtered_4FGL_J2307.6+1451_daily_bin368.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/666411/ft1_filtered_4FGL_J2307.6+1451_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/666411/ft2_4FGL_J2307.6+1451_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/666411/ltcube_334713601_334972801_4FGL_J2307.6+1451_daily_bin368.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/666411/ft2_4FGL_J2307.6+1451_daily_bin368.fits
.....................!
real 12.10
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666411/ft1_filtered_4FGL_J2307.6+1451_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/666411/ft2_4FGL_J2307.6+1451_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/666411/ltcube_334713601_334972801_4FGL_J2307.6+1451_daily_bin368.fits outfile=/scratch/kocevski/666411/expmap_334713601_334972801_4FGL_J2307.6+1451_daily_bin368.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/666411/ltcube_334713601_334972801_4FGL_J2307.6+1451_daily_bin368.fits
.....................!
real 189.61
user 184.91
sys 4.25

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
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2307.6+1451 @ 346.922 14.8644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/666411/ft1_filtered_4FGL_J2307.6+1451_daily_bin368.fits scfile=/scratch/kocevski/666411/ft2_4FGL_J2307.6+1451_daily_bin368.fits outfile=/scratch/kocevski/666411/cmap_334713601_334972801_4FGL_J2307.6+1451_daily_bin368.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.922 yref=14.8644 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/666411/ft1_filtered_4FGL_J2307.6+1451_daily_bin368.fits scfile=/scratch/kocevski/666411/ft2_4FGL_J2307.6+1451_daily_bin368.fits outfile=/scratch/kocevski/666411/cmap_HighResolution_334713601_334972801_4FGL_J2307.6+1451_daily_bin368.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.922 yref=14.8644 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/666411/ft1_filtered_4FGL_J2307.6+1451_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/666411/ft2_4FGL_J2307.6+1451_daily_bin368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/666411/Model_4FGL_J2307.6+1451_daily_bin368.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/666411/ft1_filtered_4FGL_J2307.6+1451_daily_bin368.fits.....................!
real 68.77
user 67.45
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/666411/ft1_filtered_4FGL_J2307.6+1451_daily_bin368.fits', '/scratch/kocevski/666411/ft2_4FGL_J2307.6+1451_daily_bin368.fits', expMap='/scratch/kocevski/666411/expmap_334713601_334972801_4FGL_J2307.6+1451_daily_bin368.fits', expCube='/scratch/kocevski/666411/ltcube_334713601_334972801_4FGL_J2307.6+1451_daily_bin368.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/666411/Model_4FGL_J2307.6+1451_daily_bin368.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2307.6+1451'

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.115e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/666411/ft1_filtered_4FGL_J2307.6+1451_daily_bin368.fits
Spacecraft file(s): /scratch/kocevski/666411/ft2_4FGL_J2307.6+1451_daily_bin368.fits
Exposure map: /scratch/kocevski/666411/expmap_334713601_334972801_4FGL_J2307.6+1451_daily_bin368.fits
Exposure cube: /scratch/kocevski/666411/ltcube_334713601_334972801_4FGL_J2307.6+1451_daily_bin368.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/666411/Model_4FGL_J2307.6+1451_daily_bin368.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) = 6288.64784075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2433       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.252       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.181       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2499       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20089       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.168       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3672       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6410       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18250E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0517       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.112       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .62437       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12025E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .68761E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3601       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66208       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6288.611     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2781 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2278        18.974        .29043E-06    .36806E-05
   2  Prefactor     18.251        14.476        .13104E-06    .46948E-05
   3  Prefactor     1.1017        .27811        .49193E-08    .34967E-03
   4  Prefactor     16.180        9.1377        .30284E-07    .13320E-04
   5  norm          3.2500        1.7573        .15256E-07   -.61282E-06
   6  Prefactor     .10000E-03    66.164        .23824E-06** at limit **
   7  Prefactor     .10000E-03    5.7932        .25572E-06** at limit **
   8  Prefactor     .10000E-03    4.7626        .41882E-07** at limit **
   9  Prefactor     .20092        .12067        .12205E-09    .58270E-03
  10  Prefactor     11.168        7.3522        .66043E-07    .14352E-05
  11  Prefactor     2.3408        124.79       -.15873E-05   -.26304E-05
  12  Prefactor     9.6412        6.4968       -.50561E-08   -.32434E-04
  13  Prefactor     .10000E-03    13.680        .26962E-05** at limit **
  14  Prefactor     2.0526        17.156       -.30935E-05    .33918E-04
  15  Prefactor     .10000E-03    3.0346        .24816E-06** at limit **
  16  Prefactor     11.113        10.369       -.30850E-06    .19158E-04
  17  Prefactor     .63912        9.8006        .14082E-05    .25705E-04
  18  norm          .10000E-03    4.1120        .15787E-06** at limit **
  19  Prefactor     .10000E-03    12.854       -.23746E-05** at limit **
  20  Prefactor     .10000E-03    9.2719        .15535E-06** at limit **
  21  norm          .10000E-03    20.957        .88716E-06** at limit **
  22  Prefactor     .10000E-03    17.383       -.33380E-05** at limit **
  23  Normalizat    1.3603        .20865       -.16442E-05   -.95347E-04
  24  Prefactor     .66199        .12035        .82820E-07    .10333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.22785
  Prefactor  = 18.2508
  Prefactor  = 1.10167
  Prefactor  = 16.18
  norm       = 3.24997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.200921
  Prefactor  = 11.1678
  Prefactor  = 2.34084
  Prefactor  = 9.64117
  Prefactor  = 0.000100003
  Prefactor  = 2.05259
  Prefactor  = 0.0001
  Prefactor  = 11.1129
  Prefactor  = 0.639115
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.36027
  Prefactor  = 0.661992
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.611     FROM HESSE     STATUS=OK           409 CALLS     3190 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2278        19.091        .13963E-03   -1.5134    
   2  Prefactor     18.251        14.487        .93749E-04   -1.4853    
   3  Prefactor     1.1017        .27987        .18738E-04   -1.5498    
   4  Prefactor     16.180        9.1484        .99568E-04   -1.4903    
   5  norm          3.2500        1.7567        .75115E-04   -1.5347    
   6  Prefactor     .10000E-03    67.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7644        .16903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .20092        .11771        .20323E-04   -1.5618    
  10  Prefactor     11.168        7.3537        .11988E-03   -1.5039    
  11  Prefactor     2.3408        125.41        .26633E-03   -1.5402    
  12  Prefactor     9.6412        6.4880        .12906E-03   -1.5087    
  13  Prefactor     .10000E-03    48.873        .39225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0526        17.378        .14430E-02   -1.5421    
  15  Prefactor     .10000E-03    3.0677        .13493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.113        10.330        .12018E-03   -1.5041    
  17  Prefactor     .63912        59.551        .44500E-02   -1.5548    
  18  norm          .10000E-03    4.1370        .15697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.604        .29162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.2858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    21.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.804        .30545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3603        .24211        .26417E-03   -.81785    
  24  Prefactor     .66199        .13670        .21074E-03   -1.0504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02556e-10
Minuit parameter uncertainties:
  1  19.1051
  2  14.4899
  3  0.279866
  4  9.14921
  5  1.7567
  6  0.000110978
  7  1.5731e-06
  8  2.46656e-06
  9  0.117712
  10  7.35427
  11  34.3423
  12  6.48845
  13  0.000786264
  14  11.9491
  15  1.18563e-06
  16  10.3316
  17  12.3503
  18  7.82825e-06
  19  0.000146113
  20  6.93305e-06
  21  5.61025e-06
  22  0.000450369
  23  0.242311
  24  0.136767
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  9.641e+00  6.488e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  6.620e-01  1.368e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.360e+00  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.70
Ra Dec: 346.922 14.864
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 1.63e-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) = 6287.75939439
delta logL = 0.851813044912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6287.75893055
delta logL = 0.852276881349

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6287.759     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      244 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.629        365.33        .25322E-02   -.82799E-04
   2  Index         1.6513        5.6570        .18862        .50335E-04
   3  Normalizat    1.3787        .15461        .59405E-01   -.50712E-03
   4  Prefactor     .65759        .65705E-01    .41832E-01   -.77750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6293
  Index      = 1.65129
  Normalizat = 1.37866
  Prefactor  = 0.657592
 **********
 **   18 **HESSE 
 **********

 FCN=   6287.759     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.629        11.185        .10129E-03   -1.4917    
   2  Index         1.6513        .40322        .67638E-02   -.73386    
   3  Normalizat    1.3787        .23212        .26271E-03   -.81248    
   4  Prefactor     .65759        .13553        .21142E-03   -1.0521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97526e-10
Minuit parameter uncertainties:
  1  11.1865
  2  0.404021
  3  0.232301
  4  0.135595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666411': 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) = 6287.75892936
delta logL = 0.852278071746

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.563e+01  1.119e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.651e+00  4.040e-01  0.000e+00  1.000e+01 (-1.000e+00)
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  6.576e-01  1.356e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.379e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.41
Ra Dec: 346.922 14.864
Photon Index (Free Index): 1.65 +/- 0.40
Photon Flux (Free Index): 3.14e-08 +/- 2.92e-08
Energy Flux (Free Index): 6.01e-05 +/- 6.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/666411/cmap_HighResolution_334713601_334972801_4FGL_J2307.6+1451_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='6.01e-05', photon_flux_error='3.51e-08', dlogl='8.52e-01', energy_flux='2.42e-05', photon_flux2='3.14e-08', job_status='DONE', time_completed='2021-09-29 07:05:50.055254', photon_index_error2='0.40', photon_index2='1.65', ts='6.70', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='6.13e-05', EG='1.36', time_epoch_completed='1632924350.06', return_code='0', job_id='666411', GAL2='0.66', EG2='1.38', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='2.92e-08', ts2='8.41', photon_index='2.18' WHERE bin_id='368' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:05:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 666411: <4FGL_J2307.6+1451_daily_bin368> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin368> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:55:15 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:55:17 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:55:17 2021
Terminated at Wed Sep 29 07:05:50 2021
Results reported at Wed Sep 29 07:05:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin368 346.922 14.8644 334713601 334972801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2307.6+1451 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   617.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            635 sec.

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

