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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin896
RA = 353.557, Dec = 7.602
tmin = 471571201, tmax = 471830401
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='19483', job_status='RUN', time_executed='2021-09-29 23:39:03.956890', time_epoch_executed='1632983943.96' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='896'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19483

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19483/ft1_4FGL_J2334.2+0736_daily_bin896.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19483/ft2_4FGL_J2334.2+0736_daily_bin896.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19483/ft1_4FGL_J2334.2+0736_daily_bin896.fits outfile=/scratch/kocevski/19483/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin896.fits ra=353.557 dec=7.602 rad=12.0 tmin=471571201.0 tmax=471830401.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 5.00
user 4.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19483/ft2_4FGL_J2334.2+0736_daily_bin896.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/19483/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin896.fits evtable="EVENTS" outfile="/scratch/kocevski/19483/ft1_filtered_4FGL_J2334.2+0736_daily_bin896.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/19483/ft1_filtered_4FGL_J2334.2+0736_daily_bin896.fits" evtable="EVENTS" scfile=/scratch/kocevski/19483/ft2_4FGL_J2334.2+0736_daily_bin896.fits sctable="SC_DATA" outfile=/scratch/kocevski/19483/ltcube_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.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/19483/ft2_4FGL_J2334.2+0736_daily_bin896.fits
.....................!
real 11.54
user 11.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19483/ft1_filtered_4FGL_J2334.2+0736_daily_bin896.fits evtable="EVENTS" scfile=/scratch/kocevski/19483/ft2_4FGL_J2334.2+0736_daily_bin896.fits sctable="SC_DATA" expcube=/scratch/kocevski/19483/ltcube_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.fits outfile=/scratch/kocevski/19483/expmap_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.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/19483/ltcube_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.fits
.....................!
real 191.03
user 185.57
sys 5.15

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/19483/ft1_filtered_4FGL_J2334.2+0736_daily_bin896.fits scfile=/scratch/kocevski/19483/ft2_4FGL_J2334.2+0736_daily_bin896.fits outfile=/scratch/kocevski/19483/cmap_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19483/ft1_filtered_4FGL_J2334.2+0736_daily_bin896.fits scfile=/scratch/kocevski/19483/ft2_4FGL_J2334.2+0736_daily_bin896.fits outfile=/scratch/kocevski/19483/cmap_HighResolution_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.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.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19483/ft1_filtered_4FGL_J2334.2+0736_daily_bin896.fits', '/scratch/kocevski/19483/ft2_4FGL_J2334.2+0736_daily_bin896.fits', expMap='/scratch/kocevski/19483/expmap_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.fits', expCube='/scratch/kocevski/19483/ltcube_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19483/Model_4FGL_J2334.2+0736_daily_bin896.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/19483/ft1_filtered_4FGL_J2334.2+0736_daily_bin896.fits
Spacecraft file(s): /scratch/kocevski/19483/ft2_4FGL_J2334.2+0736_daily_bin896.fits
Exposure map: /scratch/kocevski/19483/expmap_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.fits
Exposure cube: /scratch/kocevski/19483/ltcube_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19483/Model_4FGL_J2334.2+0736_daily_bin896.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) = 6148.41814311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9881       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2716       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8624       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.796       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6972       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8531       1.0000         .10000E-03   10000.    
    16 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4619       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8833       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5687       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68650       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3918       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=   6148.265     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2350 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9972        35.237       -.85055E-06   -.10516E-05
   2  Prefactor     .10000E-03    16.449        .52509E-06** at limit **
   3  Prefactor     .10000E-03    32.590       -.72861E-06** at limit **
   4  Prefactor     .10000E-03    7.6662        .74452E-07** at limit **
   5  Prefactor     .10000E-03    72.437        .17018E-04** at limit **
   6  Prefactor     .10000E-03    88.943        .12950E-05** at limit **
   7  norm          3.2717        1.4834       -.36070E-07   -.87138E-04
   8  Prefactor     2.8763        20.452       -.39863E-05   -.48450E-05
   9  Prefactor     26.796        23.353        .74936E-07    .83470E-04
  10  Prefactor     .10000E-03    27.078        .86390E-06** at limit **
  11  norm          3.6885        12.122        .50196E-06    .36770E-03
  12  Prefactor     .10000E-03    17.782       -.92728E-07** at limit **
  13  Prefactor     .10000E-03    141.66       -.51508E-05** at limit **
  14  Prefactor     .10000E-03    2.8574       -.69497E-08** at limit **
  15  Prefactor     6.8554        32.518        .20922E-05    .87179E-04
  16  norm          .10000E-03    48.224       -.29742E-07** at limit **
  17  norm          .10000E-03    5.7446        .15067E-07** at limit **
  18  Prefactor     1.4620        2.4184       -.65534E-07   -.71640E-05
  19  Prefactor     .10000E-03    22.025        .38678E-06** at limit **
  20  Prefactor     .10000E-03    10.328        .18882E-07** at limit **
  21  Prefactor     2.8834        4.2553       -.37921E-07    .30360E-04
  22  Prefactor     8.5693        12.307       -.82359E-07   -.18515E-05
  23  Normalizat    .68646        .25051        .17130E-05    .17499E-03
  24  Prefactor     1.3918        .15852       -.33718E-07    .30554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.99717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  norm       = 3.2717
  Prefactor  = 2.87633
  Prefactor  = 26.7962
  Prefactor  = 0.0001
  norm       = 3.68849
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.85536
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.46199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88344
  Prefactor  = 8.56927
  Normalizat = 0.686456
  Prefactor  = 1.39176
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.265     FROM HESSE     STATUS=OK           393 CALLS     2743 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9972        35.291        .20196E-03   -1.5308    
   2  Prefactor     .10000E-03    16.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    70.866        .54786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    90.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2717        1.4821        .62358E-04   -1.5346    
   8  Prefactor     2.8763        19.834        .12014E-02   -1.5369    
   9  Prefactor     26.796        23.364        .77390E-04   -1.4672    
  10  Prefactor     .10000E-03    27.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6885        11.833        .10502E-02   -1.5324    
  12  Prefactor     .10000E-03    18.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    142.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8583        .12944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8554        32.534        .15326E-03   -1.5184    
  16  norm          .10000E-03    49.578        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.7451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4620        2.3827        .15244E-03   -1.5466    
  19  Prefactor     .10000E-03    22.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8834        4.2417        .19130E-03   -1.5368    
  22  Prefactor     8.5693        12.300        .13694E-03   -1.5122    
  23  Normalizat    .68646        .27702        .41178E-03   -1.0443    
  24  Prefactor     1.3918        .17868        .19986E-03   -.80618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29258e-10
Minuit parameter uncertainties:
  1  23.7726
  2  2.91201e-05
  3  6.62308e-05
  4  1.34565e-07
  5  0.00108963
  6  0.000536842
  7  1.48207
  8  15.113
  9  23.3718
  10  5.92769e-05
  11  11.8409
  12  0.000160864
  13  0.000868716
  14  2.5516e-07
  15  29.8949
  16  0.000421603
  17  5.94797e-07
  18  2.38285
  19  2.07185e-05
  20  5.3904e-07
  21  4.24216
  22  12.3039
  23  0.277586
  24  0.178762
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  6.855e+00  2.989e+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.392e+00  1.788e-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:  6.865e-01  2.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19483/likelihoodResults_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.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) = 6148.21517903
delta logL = 0.0495530714152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6148.21455101
delta logL = 0.0501810899768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5056       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9439       1.0000          .0000       10.000    
     3 'Normalizat'    .67534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3937       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6148.215     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      268 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4925        24.213        .15735E-03    .14884E-03
   2  Index         2.9441        1.6601        .11963E-01    .78802E-04
   3  Normalizat    .67587        .26689        .41478E-03   -.60492E-04
   4  Prefactor     1.3937        .17715        .19973E-03    .12876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49254
  Index      = 2.94407
  Normalizat = 0.67587
  Prefactor  = 1.39366
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.215     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4925        21.078        .62938E-05   -1.5198    
   2  Index         2.9441        1.4516        .47852E-03   -.42375    
   3  Normalizat    .67587        .26705        .16591E-04   -1.0485    
   4  Prefactor     1.3937        .17708        .39945E-04   -.80563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25557e-10
Minuit parameter uncertainties:
  1  21.1023
  2  1.47729
  3  0.267562
  4  0.177153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19483': 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) = 6148.21454412
delta logL = 0.0501879839176

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  6.493e+00  2.110e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.944e+00  1.477e+00  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.394e+00  1.772e-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:  6.759e-01  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 353.557 7.602

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/19483/cmap_HighResolution_471571201_471830401_4FGL_J2334.2+0736_daily_bin896.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-29 23:49:31.065207', job_id='19483', GAL2='1.39', fit_tolerance='1e-08', EG2='0.68', EG='0.69', time_epoch_completed='1632984571.07', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='5.02e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='896' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:49:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 19483: <4FGL_J2334.2+0736_daily_bin896> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin896> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 23:35:15 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:35: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 23:35:17 2021
Terminated at Wed Sep 29 23:49:31 2021
Results reported at Wed Sep 29 23:49:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin896 353.557 7.602 471571201 471830401 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 :                                   626.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             260.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

