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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin571
RA = 353.557, Dec = 7.602
tmin = 387331201, tmax = 387590401
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='17448', job_status='RUN', time_executed='2021-09-29 23:28:33.462256', time_epoch_executed='1632983313.46' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17448

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17448/ft1_4FGL_J2334.2+0736_daily_bin571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17448/ft2_4FGL_J2334.2+0736_daily_bin571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17448/ft1_4FGL_J2334.2+0736_daily_bin571.fits outfile=/scratch/kocevski/17448/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin571.fits ra=353.557 dec=7.602 rad=12.0 tmin=387331201.0 tmax=387590401.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 4.47
user 4.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17448/ft1_filtered_4FGL_J2334.2+0736_daily_bin571.fits" evtable="EVENTS" scfile=/scratch/kocevski/17448/ft2_4FGL_J2334.2+0736_daily_bin571.fits sctable="SC_DATA" outfile=/scratch/kocevski/17448/ltcube_387331201_387590401_4FGL_J2334.2+0736_daily_bin571.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/17448/ft2_4FGL_J2334.2+0736_daily_bin571.fits
.....................!
real 11.50
user 11.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17448/ft1_filtered_4FGL_J2334.2+0736_daily_bin571.fits evtable="EVENTS" scfile=/scratch/kocevski/17448/ft2_4FGL_J2334.2+0736_daily_bin571.fits sctable="SC_DATA" expcube=/scratch/kocevski/17448/ltcube_387331201_387590401_4FGL_J2334.2+0736_daily_bin571.fits outfile=/scratch/kocevski/17448/expmap_387331201_387590401_4FGL_J2334.2+0736_daily_bin571.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/17448/ltcube_387331201_387590401_4FGL_J2334.2+0736_daily_bin571.fits
.....................!
real 189.54
user 184.33
sys 4.80

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/17448/ft1_filtered_4FGL_J2334.2+0736_daily_bin571.fits scfile=/scratch/kocevski/17448/ft2_4FGL_J2334.2+0736_daily_bin571.fits outfile=/scratch/kocevski/17448/cmap_387331201_387590401_4FGL_J2334.2+0736_daily_bin571.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17448/ft1_filtered_4FGL_J2334.2+0736_daily_bin571.fits scfile=/scratch/kocevski/17448/ft2_4FGL_J2334.2+0736_daily_bin571.fits outfile=/scratch/kocevski/17448/cmap_HighResolution_387331201_387590401_4FGL_J2334.2+0736_daily_bin571.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.294       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 '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0933       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.360       1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.569       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5664       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.640       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10862E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10706E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.728       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.198       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0662       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77314       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0365       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=   7565.108     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2683 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.295        13.625        .78479E-07   -.93104E-05
   2  Prefactor     .10000E-03    7.6041       -.19425E-05** at limit **
   3  Prefactor     .10000E-03    19.506       -.31377E-05** at limit **
   4  Prefactor     .10000E-03    8.4153        .17246E-05** at limit **
   5  Prefactor     .10000E-03    3.4698       -.57708E-09** at limit **
   6  Prefactor     .10000E-03    3.7261       -.53415E-07** at limit **
   7  norm          2.0934        .87595        .73219E-08   -.79582E-05
   8  Prefactor     .10000E-03    4.9938       -.62241E-06** at limit **
   9  Prefactor     28.359        19.642       -.32202E-07   -.93002E-05
  10  Prefactor     50.574        46.595        .16123E-05    .10617E-03
  11  norm          3.5651        4.2566        .14791E-05   -.11731E-02
  12  Prefactor     .10000E-03    5.9693        .74085E-06** at limit **
  13  Prefactor     .10000E-03    39.441        .58210E-06** at limit **
  14  Prefactor     13.643        8.5933        .24320E-06   -.32114E-03
  15  Prefactor     .10000E-03    15.141        .40354E-06** at limit **
  16  norm          .10000E-03    40.326       -.42345E-05** at limit **
  17  norm          .10001E-03    27.452        .55423E-05** at limit **
  18  Prefactor     .10000E-03    .76718        .17240E-07** at limit **
  19  Prefactor     32.723        39.165       -.18157E-05   -.14944E-03
  20  Prefactor     13.201        18.553        .56088E-06    .27958E-04
  21  Prefactor     6.0660        7.0554        .16899E-05   -.85133E-03
  22  Prefactor     .10000E-03    4.6236        .21738E-06** at limit **
  23  Normalizat    .77304        .19107       -.28867E-06   -.32602E-04
  24  Prefactor     1.0365        .12067       -.24113E-06   -.37237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2954
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09336
  Prefactor  = 0.0001
  Prefactor  = 28.3591
  Prefactor  = 50.5738
  norm       = 3.56508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6435
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 32.7227
  Prefactor  = 13.2012
  Prefactor  = 6.06605
  Prefactor  = 0.0001
  Normalizat = 0.77304
  Prefactor  = 1.03649
 **********
 **   18 **HESSE 
 **********

 FCN=   7565.108     FROM HESSE     STATUS=OK           389 CALLS     3072 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.295        13.653        .11425E-03   -1.5007    
   2  Prefactor     .10000E-03    7.8133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.7706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4739        .15822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7287        .16397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0934        .87687        .50936E-04   -1.5419    
   8  Prefactor     .10000E-03    5.0579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.359        19.651        .75231E-04   -1.4642    
  10  Prefactor     50.574        46.866        .56395E-04   -1.4284    
  11  norm          3.5651        4.5235        .10102E-02   -1.5330    
  12  Prefactor     .10000E-03    6.1860        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.643        8.5364        .10845E-03   -1.4969    
  15  Prefactor     .10000E-03    15.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    42.268        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    29.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .77006        .74373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.723        39.647        .70043E-04   -1.4563    
  20  Prefactor     13.201        18.565        .11026E-03   -1.4981    
  21  Prefactor     6.0660        7.4340        .81507E-03   -1.5215    
  22  Prefactor     .10000E-03    4.6351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .77304        .21962        .33755E-03   -1.0108    
  24  Prefactor     1.0365        .13883        .19383E-03   -.91523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55644e-09
Minuit parameter uncertainties:
  1  13.6566
  2  0.000202866
  3  0.00052125
  4  0.000164237
  5  4.98768e-07
  6  4.48052e-06
  7  0.876878
  8  5.02433e-05
  9  19.6557
  10  46.9003
  11  4.52392
  12  5.72909e-05
  13  0.000134127
  14  8.53716
  15  6.23346e-05
  16  0.00088217
  17  0.00095926
  18  1.12228e-07
  19  39.6792
  20  18.5731
  21  7.43515
  22  1.74725e-05
  23  0.219874
  24  0.138877
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  6.233e-05  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.036e+00  1.389e-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:  7.730e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 7.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17448/likelihoodResults_387331201_387590401_4FGL_J2334.2+0736_daily_bin571.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) = 7565.10813976
delta logL = -0.000313190581437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7565.10782669
delta logL = -1.2114742276e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4811       1.0000          .0000       10.000    
     3 'Normalizat'    .77294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0366       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=   7565.108     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6508.2        .90712E-02** at limit **
   2  Index         2.4916        5.5928        .50000       -.62913E-05
   3  Normalizat    .77304        .12575        .76255E-01    .39298E-04
   4  Prefactor     1.0365        .82174E-01    .40770E-01    .14783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49162
  Normalizat = 0.773041
  Prefactor  = 1.03649
 **********
 **   18 **HESSE 
 **********

 FCN=   7565.108     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4916        6.2449        .50000       -.52554    
   3  Normalizat    .77304        .20822        .33755E-03   -1.0108    
   4  Prefactor     1.0365        .13779        .19383E-03   -.91523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27462e-11
Minuit parameter uncertainties:
  1  2.15547e-05
  2  4.63936
  3  0.208435
  4  0.137839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17448': 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) = 7565.10782654
delta logL = 2.98741724691e-08

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  2.155e-05  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.492e+00  4.639e+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.036e+00  1.378e-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:  7.730e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.557 7.602

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/17448/cmap_HighResolution_387331201_387590401_4FGL_J2334.2+0736_daily_bin571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='7.96e-08', time_completed='2021-09-29 23:40:24.641399', job_id='17448', GAL2='1.04', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632984024.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.99e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='571' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:40:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 17448: <4FGL_J2334.2+0736_daily_bin571> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin571 353.557 7.602 387331201 387590401 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 :                                   706.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

