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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin127
RA = 353.557, Dec = 7.602
tmin = 272246401, tmax = 272505601
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='16805', job_status='RUN', time_executed='2021-09-29 23:28:36.199133', time_epoch_executed='1632983316.2' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16805

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16805/ft1_4FGL_J2334.2+0736_daily_bin127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16805/ft2_4FGL_J2334.2+0736_daily_bin127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16805/ft1_4FGL_J2334.2+0736_daily_bin127.fits outfile=/scratch/kocevski/16805/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin127.fits ra=353.557 dec=7.602 rad=12.0 tmin=272246401.0 tmax=272505601.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 2.49
user 2.30
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/16805/ft2_4FGL_J2334.2+0736_daily_bin127.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/16805/ft2_4FGL_J2334.2+0736_daily_bin127.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/16805/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin127.fits evtable="EVENTS" outfile="/scratch/kocevski/16805/ft1_filtered_4FGL_J2334.2+0736_daily_bin127.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/16805/ft1_filtered_4FGL_J2334.2+0736_daily_bin127.fits" evtable="EVENTS" scfile=/scratch/kocevski/16805/ft2_4FGL_J2334.2+0736_daily_bin127.fits sctable="SC_DATA" outfile=/scratch/kocevski/16805/ltcube_272246401_272505601_4FGL_J2334.2+0736_daily_bin127.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/16805/ft2_4FGL_J2334.2+0736_daily_bin127.fits
.....................!
real 14.05
user 13.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16805/ft1_filtered_4FGL_J2334.2+0736_daily_bin127.fits evtable="EVENTS" scfile=/scratch/kocevski/16805/ft2_4FGL_J2334.2+0736_daily_bin127.fits sctable="SC_DATA" expcube=/scratch/kocevski/16805/ltcube_272246401_272505601_4FGL_J2334.2+0736_daily_bin127.fits outfile=/scratch/kocevski/16805/expmap_272246401_272505601_4FGL_J2334.2+0736_daily_bin127.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/16805/ltcube_272246401_272505601_4FGL_J2334.2+0736_daily_bin127.fits
.....................!
real 190.47
user 185.10
sys 5.06

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

Setting source of interest to:
4FGL J2334.2+0736 @ 353.557 7.602

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/16805/ft1_filtered_4FGL_J2334.2+0736_daily_bin127.fits scfile=/scratch/kocevski/16805/ft2_4FGL_J2334.2+0736_daily_bin127.fits outfile=/scratch/kocevski/16805/cmap_272246401_272505601_4FGL_J2334.2+0736_daily_bin127.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=353.557 yref=7.602 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/16805/ft1_filtered_4FGL_J2334.2+0736_daily_bin127.fits scfile=/scratch/kocevski/16805/ft2_4FGL_J2334.2+0736_daily_bin127.fits outfile=/scratch/kocevski/16805/cmap_HighResolution_272246401_272505601_4FGL_J2334.2+0736_daily_bin127.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=353.557 yref=7.602 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/16805/ft1_filtered_4FGL_J2334.2+0736_daily_bin127.fits evtable="EVENTS" scfile=/scratch/kocevski/16805/ft2_4FGL_J2334.2+0736_daily_bin127.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/16805/Model_4FGL_J2334.2+0736_daily_bin127.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/16805/ft1_filtered_4FGL_J2334.2+0736_daily_bin127.fits.....................!
real 92.90
user 91.51
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/16805/ft1_filtered_4FGL_J2334.2+0736_daily_bin127.fits', '/scratch/kocevski/16805/ft2_4FGL_J2334.2+0736_daily_bin127.fits', expMap='/scratch/kocevski/16805/expmap_272246401_272505601_4FGL_J2334.2+0736_daily_bin127.fits', expCube='/scratch/kocevski/16805/ltcube_272246401_272505601_4FGL_J2334.2+0736_daily_bin127.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/16805/Model_4FGL_J2334.2+0736_daily_bin127.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2334.2+0736'

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.621e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/16805/ft1_filtered_4FGL_J2334.2+0736_daily_bin127.fits
Spacecraft file(s): /scratch/kocevski/16805/ft2_4FGL_J2334.2+0736_daily_bin127.fits
Exposure map: /scratch/kocevski/16805/expmap_272246401_272505601_4FGL_J2334.2+0736_daily_bin127.fits
Exposure cube: /scratch/kocevski/16805/ltcube_272246401_272505601_4FGL_J2334.2+0736_daily_bin127.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/16805/Model_4FGL_J2334.2+0736_daily_bin127.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) = 9075.33344123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92539       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1150       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .42268E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.898       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3282       1.0000         .10000E-03   10000.    
     7 'norm      '    .77616       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3061       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.661       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.493       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.496       1.0000         .10000E-03   10000.    
    16 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1702       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.805       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1324       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.381       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .45313       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1631       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9075.314     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2763 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93058        6.5289        .34007E-07   -.34004E-05
   2  Prefactor     .10000E-03    5.0855       -.64188E-08** at limit **
   3  Prefactor     9.0886        25.043        .35511E-05   -.24893E-05
   4  Prefactor     .10001E-03    4.4793       -.18866E-06** at limit **
   5  Prefactor     14.897        11.930       -.13535E-08   -.71720E-05
   6  Prefactor     3.3271        10.495        .34370E-05   -.72302E-05
   7  norm          .77614        .50039        .30332E-08   -.11911E-04
   8  Prefactor     .10000E-03    18.811        .39819E-06** at limit **
   9  Prefactor     9.3056        16.910        .27834E-06    .23268E-05
  10  Prefactor     .10000E-03    9.3961        .53472E-08** at limit **
  11  norm          11.665        11.711        .11098E-06   -.58963E-04
  12  Prefactor     15.493        9.3174        .22888E-06   -.36392E-04
  13  Prefactor     .10000E-03    41.554       -.77312E-06** at limit **
  14  Prefactor     .10000E-03    4.5609       -.43016E-08** at limit **
  15  Prefactor     55.502        29.163       -.39633E-06   -.29353E-04
  16  norm          .10000E-03    32.243        .33012E-06** at limit **
  17  norm          2.1680        7.6989        .49972E-06    .26849E-05
  18  Prefactor     .10000E-03    1.9941        .38103E-07** at limit **
  19  Prefactor     47.804        30.605        .25946E-06    .26995E-06
  20  Prefactor     .10000E-03    18.297       -.48129E-06** at limit **
  21  Prefactor     5.1323        4.3945        .75659E-07    .12861E-05
  22  Prefactor     11.381        12.359        .11743E-06   -.83958E-05
  23  Normalizat    .45308        .19172       -.11888E-05   -.43299E-04
  24  Prefactor     1.1632        .12082       -.31750E-07   -.33680E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.930579
  Prefactor  = 0.0001
  Prefactor  = 9.08864
  Prefactor  = 0.000100006
  Prefactor  = 14.8966
  Prefactor  = 3.32713
  norm       = 0.776138
  Prefactor  = 0.0001
  Prefactor  = 9.30563
  Prefactor  = 0.0001
  norm       = 11.6651
  Prefactor  = 15.4926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.5021
  norm       = 0.0001
  norm       = 2.16799
  Prefactor  = 0.0001
  Prefactor  = 47.8038
  Prefactor  = 0.0001
  Prefactor  = 5.13232
  Prefactor  = 11.3806
  Normalizat = 0.453083
  Prefactor  = 1.16317
 **********
 **   18 **HESSE 
 **********

 FCN=   9075.314     FROM HESSE     STATUS=OK           409 CALLS     3172 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93058        36.210        .46283E-02   -1.5515    
   2  Prefactor     .10000E-03    5.0862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.0886        25.067        .13275E-03   -1.5105    
   4  Prefactor     .10001E-03    40.398        .38694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.897        11.908        .10377E-03   -1.4936    
   6  Prefactor     3.3271        10.507        .11094E-02   -1.5343    
   7  norm          .77614        .50992        .52642E-04   -1.5532    
   8  Prefactor     .10000E-03    19.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.3056        16.885        .13137E-03   -1.5098    
  10  Prefactor     .10000E-03    9.3978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.665        11.613        .11731E-03   -1.5025    
  12  Prefactor     15.493        9.2785        .10176E-03   -1.4921    
  13  Prefactor     .10000E-03    41.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     55.502        29.075        .53846E-04   -1.4217    
  16  norm          .10000E-03    33.203        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1680        7.6484        .27953E-03   -1.5413    
  18  Prefactor     .10000E-03    2.0573        .26229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     47.804        30.586        .57995E-04   -1.4324    
  20  Prefactor     .10000E-03    18.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1323        4.3919        .17746E-03   -1.5255    
  22  Prefactor     11.381        12.346        .11875E-03   -1.5033    
  23  Normalizat    .45308        .19986        .42142E-03   -1.1464    
  24  Prefactor     1.1632        .12811        .18386E-03   -.87472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32114e-08
Minuit parameter uncertainties:
  1  11.6166
  2  1.42864e-07
  3  25.0963
  4  0.000982121
  5  11.9101
  6  10.5131
  7  0.509919
  8  4.69173e-05
  9  16.894
  10  7.65266e-07
  11  11.6154
  12  9.27939
  13  1.38133e-06
  14  1.61696e-06
  15  29.0823
  16  1.4508e-05
  17  7.6518
  18  2.39301e-06
  19  30.5962
  20  4.10419e-05
  21  4.39218
  22  12.3485
  23  0.200172
  24  0.128147
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.550e+01  2.908e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.163e+00  1.281e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  4.531e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.70
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.36e-08
Energy Flux (Fixed Index): 3.07e-05 +/- 1.61e-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) = 9075.31292696
delta logL = 0.00115835744509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9075.31166235
delta logL = 0.0024229613191

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9075.312     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      232 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.177        479.24        .13263E-02    .24875E-03
   2  Index         2.4291        3.5680        .12136        .19107E-03
   3  Normalizat    .45654        .11993        .94759E-01    .45276E-04
   4  Prefactor     1.1619        .48446E-01    .35597E-01   -.12360E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.1773
  Index      = 2.4291
  Normalizat = 0.456537
  Prefactor  = 1.16191
 **********
 **   18 **HESSE 
 **********

 FCN=   9075.312     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.177        39.581        .53053E-04   -1.4194    
   2  Index         2.4291        .64255        .74098E-02   -.54005    
   3  Normalizat    .45654        .19401        .41993E-03   -1.1447    
   4  Prefactor     1.1619        .12789        .18396E-03   -.87512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22542e-08
Minuit parameter uncertainties:
  1  39.599
  2  0.644983
  3  0.1943
  4  0.127928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16805': 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) = 9075.31166169
delta logL = 0.00242362597419

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.718e+01  3.960e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.429e+00  6.450e-01  0.000e+00  1.000e+01 (-1.000e+00)
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.162e+00  1.279e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  4.565e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.70
Ra Dec: 353.557 7.602
Photon Index (Free Index): 2.43 +/- 0.64
Photon Flux (Free Index): 9.88e-08 +/- 7.20e-08
Energy Flux (Free Index): 3.12e-05 +/- 1.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/16805/cmap_HighResolution_272246401_272505601_4FGL_J2334.2+0736_daily_bin127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.12e-05', photon_flux_error='5.36e-08', dlogl='2.42e-03', energy_flux='3.07e-05', photon_flux2='9.88e-08', job_status='DONE', time_completed='2021-09-29 23:40:38.074120', photon_index_error2='0.64', photon_index2='2.43', ts='6.70', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.45', time_epoch_completed='1632984038.07', return_code='0', job_id='16805', GAL2='1.16', EG2='0.46', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='7.20e-08', ts2='6.70', photon_index='2.47' WHERE bin_id='127' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:40:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 16805: <4FGL_J2334.2+0736_daily_bin127> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin127> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:25:13 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:25: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 23:25:14 2021
Terminated at Wed Sep 29 23:40:38 2021
Results reported at Wed Sep 29 23:40:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin127 353.557 7.602 272246401 272505601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2334.2+0736 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   717.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

