/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 164 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 = 7406
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2307.6+1451_daily_bin45
RA = 346.922, Dec = 14.8644
tmin = 250992001, tmax = 251251201
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='664841', job_status='RUN', time_executed='2021-09-29 06:53:16.621096', time_epoch_executed='1632923596.62' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664841

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664841/ft1_4FGL_J2307.6+1451_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664841/ft2_4FGL_J2307.6+1451_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664841/ft1_4FGL_J2307.6+1451_daily_bin45.fits outfile=/scratch/kocevski/664841/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin45.fits ra=346.922 dec=14.8644 rad=12.0 tmin=250992001.0 tmax=251251201.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 1.43
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/664841/ft2_4FGL_J2307.6+1451_daily_bin45.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/664841/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin45.fits evtable="EVENTS" outfile="/scratch/kocevski/664841/ft1_filtered_4FGL_J2307.6+1451_daily_bin45.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/664841/ft1_filtered_4FGL_J2307.6+1451_daily_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/664841/ft2_4FGL_J2307.6+1451_daily_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/664841/ltcube_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.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/664841/ft2_4FGL_J2307.6+1451_daily_bin45.fits
.....................!
real 12.93
user 12.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664841/ft1_filtered_4FGL_J2307.6+1451_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/664841/ft2_4FGL_J2307.6+1451_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/664841/ltcube_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.fits outfile=/scratch/kocevski/664841/expmap_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.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/664841/ltcube_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.fits
.....................!
real 192.60
user 186.94
sys 5.29

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/664841/ft1_filtered_4FGL_J2307.6+1451_daily_bin45.fits scfile=/scratch/kocevski/664841/ft2_4FGL_J2307.6+1451_daily_bin45.fits outfile=/scratch/kocevski/664841/cmap_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/664841/ft1_filtered_4FGL_J2307.6+1451_daily_bin45.fits scfile=/scratch/kocevski/664841/ft2_4FGL_J2307.6+1451_daily_bin45.fits outfile=/scratch/kocevski/664841/cmap_HighResolution_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/664841/ft1_filtered_4FGL_J2307.6+1451_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/664841/ft2_4FGL_J2307.6+1451_daily_bin45.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/664841/Model_4FGL_J2307.6+1451_daily_bin45.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/664841/ft1_filtered_4FGL_J2307.6+1451_daily_bin45.fits.....................!
real 100.67
user 99.14
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/664841/ft1_filtered_4FGL_J2307.6+1451_daily_bin45.fits', '/scratch/kocevski/664841/ft2_4FGL_J2307.6+1451_daily_bin45.fits', expMap='/scratch/kocevski/664841/expmap_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.fits', expCube='/scratch/kocevski/664841/ltcube_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/664841/Model_4FGL_J2307.6+1451_daily_bin45.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/664841/ft1_filtered_4FGL_J2307.6+1451_daily_bin45.fits
Spacecraft file(s): /scratch/kocevski/664841/ft2_4FGL_J2307.6+1451_daily_bin45.fits
Exposure map: /scratch/kocevski/664841/expmap_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.fits
Exposure cube: /scratch/kocevski/664841/ltcube_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/664841/Model_4FGL_J2307.6+1451_daily_bin45.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) = 9441.31735018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2776       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6334       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18051       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1041       1.0000         .10000E-03   10000.    
     5 'norm      '    .38007       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.931       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7835       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.724       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7896       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.520       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22213       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.288       1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10482E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    18.242       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.666       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1777       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91372       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=   9441.306     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2366 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2765        5.4181        .14738E-05   -.15417E-02
   2  Prefactor     1.6098        29.800       -.44617E-05   -.11248E-03
   3  Prefactor     .18047        .11724       -.13151E-07   -.10751E-03
   4  Prefactor     5.1034        4.9910        .66850E-06   -.15679E-02
   5  norm          .38022        .91357        .66944E-07   -.46510E-03
   6  Prefactor     24.923        26.134       -.51507E-05   -.31838E-03
   7  Prefactor     3.7825        5.2438        .97177E-06   -.14688E-02
   8  Prefactor     23.716        22.415       -.50512E-05   -.40301E-03
   9  Prefactor     1.7896        .23877        .66194E-07   -.21072E-02
  10  Prefactor     .10000E-03    3.2099       -.37220E-07** at limit **
  11  Prefactor     24.516        23.315       -.26366E-05   -.19588E-03
  12  Prefactor     .23085        4.7435        .33501E-06   -.19157E-03
  13  Prefactor     .10000E-03    4.5748       -.25280E-07** at limit **
  14  Prefactor     .10000E-03    7.7719       -.24052E-06** at limit **
  15  Prefactor     .10000E-03    1.3914        .21903E-07** at limit **
  16  Prefactor     .10000E-03    2.4545       -.14580E-07** at limit **
  17  Prefactor     17.285        14.570       -.11925E-05   -.14864E-03
  18  norm          .10000E-03    2.9527       -.24181E-07** at limit **
  19  Prefactor     .10000E-03    2.8991       -.10146E-06** at limit **
  20  Prefactor     .10000E-03    6.7663        .33075E-06** at limit **
  21  norm          18.249        14.978        .13675E-05    .21767E-03
  22  Prefactor     10.665        7.8178        .79948E-07    .38976E-04
  23  Normalizat    1.1779        .19700        .53838E-06    .65404E-04
  24  Prefactor     .91371        .10926        .11444E-06    .10694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.27654
  Prefactor  = 1.60983
  Prefactor  = 0.180472
  Prefactor  = 5.10342
  norm       = 0.380217
  Prefactor  = 24.923
  Prefactor  = 3.78247
  Prefactor  = 23.7156
  Prefactor  = 1.7896
  Prefactor  = 0.0001
  Prefactor  = 24.5156
  Prefactor  = 0.230845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2854
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 18.2488
  Prefactor  = 10.6647
  Normalizat = 1.17795
  Prefactor  = 0.913709
 **********
 **   18 **HESSE 
 **********

 FCN=   9441.306     FROM HESSE     STATUS=OK           405 CALLS     2771 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2765        6.2605        .11183E-02   -1.5346    
   2  Prefactor     1.6098        30.583        .33080E-03   -1.5454    
   3  Prefactor     .18047        .11467        .25754E-04   -1.5623    
   4  Prefactor     5.1034        5.3283        .88981E-03   -1.5256    
   5  norm          .38022        .74754        .13953E-02   -1.5585    
   6  Prefactor     24.923        26.423        .80227E-04   -1.4709    
   7  Prefactor     3.7825        5.7043        .10377E-02   -1.5319    
   8  Prefactor     23.716        22.725        .82240E-04   -1.4734    
   9  Prefactor     1.7896        .23966        .15481E-04   -1.5440    
  10  Prefactor     .10000E-03    3.2163        .17001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.516        23.462        .80896E-04   -1.4717    
  12  Prefactor     .23085        43.219        .39564E-02   -1.5612    
  13  Prefactor     .10000E-03    4.5888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.7831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3943        .11191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4588        .14866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.285        14.618        .96328E-04   -1.4876    
  18  norm          .10000E-03    2.9631        .16291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.888        .31102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.7749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.249        14.977        .93774E-04   -1.4853    
  22  Prefactor     10.665        7.8198        .12268E-03   -1.5055    
  23  Normalizat    1.1779        .22626        .32447E-03   -.87287    
  24  Prefactor     .91371        .12921        .21031E-03   -.95664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6599e-08
Minuit parameter uncertainties:
  1  6.26172
  2  14.0413
  3  0.11467
  4  5.32878
  5  0.747558
  6  26.435
  7  5.70507
  8  22.7337
  9  0.239657
  10  2.85203e-06
  11  23.4704
  12  6.32048
  13  4.83762e-07
  14  1.53476e-05
  15  3.61097e-07
  16  1.25092e-06
  17  14.621
  18  3.01454e-06
  19  0.000689176
  20  1.18847e-05
  21  14.98
  22  7.82052
  23  0.226451
  24  0.129257
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  2.308e-01  6.320e+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:  9.137e-01  1.293e-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.178e+00  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 346.922 14.864
Photon Flux Upper Limit: 9.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/664841/likelihoodResults_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.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) = 9441.30293677
delta logL = 0.00306276214542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9441.28351602
delta logL = 0.022483515022

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9441.284     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      289 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4126        8.5673        .18174E-02    .27725E-04
   2  Index         1.5628        1.5164        .18153E-01    .61200E-05
   3  Normalizat    1.1815        .21792        .32406E-03    .54027E-05
   4  Prefactor     .91080        .12749        .21060E-03   -.85938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41256
  Index      = 1.56277
  Normalizat = 1.18146
  Prefactor  = 0.9108
 **********
 **   18 **HESSE 
 **********

 FCN=   9441.284     FROM HESSE     STATUS=OK            27 CALLS      316 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4126        8.6323        .72694E-04   -1.5470    
   2  Index         1.5628        1.5227        .72611E-03   -.75797    
   3  Normalizat    1.1815        .21807        .12962E-04   -.87178    
   4  Prefactor     .91080        .12757        .84241E-05   -.95765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53424e-11
Minuit parameter uncertainties:
  1  6.98513
  2  1.57124
  3  0.218236
  4  0.127612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664841': 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) = 9441.28351196
delta logL = 0.0224875746353

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.413e+00  6.985e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.563e+00  1.571e+00  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:  9.108e-01  1.276e-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.181e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 346.922 14.864

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/664841/cmap_HighResolution_250992001_251251201_4FGL_J2307.6+1451_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='9.26e-08', time_completed='2021-09-29 07:06:55.438928', job_id='664841', GAL2='0.91', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632924415.44', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.25e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='45' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:06:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 664841: <4FGL_J2307.6+1451_daily_bin45> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin45> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 06:50:20 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:50:22 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:50:22 2021
Terminated at Wed Sep 29 07:06:56 2021
Results reported at Wed Sep 29 07:06:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin45 346.922 14.8644 250992001 251251201 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 :                                   818.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            996 sec.

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

