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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin285
RA = 353.557, Dec = 7.602
tmin = 313200001, tmax = 313459201
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='17035', job_status='RUN', time_executed='2021-09-29 23:26:21.911098', time_epoch_executed='1632983181.91' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17035

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17035/ft1_4FGL_J2334.2+0736_daily_bin285.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17035/ft2_4FGL_J2334.2+0736_daily_bin285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17035/ft1_4FGL_J2334.2+0736_daily_bin285.fits outfile=/scratch/kocevski/17035/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin285.fits ra=353.557 dec=7.602 rad=12.0 tmin=313200001.0 tmax=313459201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.41
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17035/ft1_filtered_4FGL_J2334.2+0736_daily_bin285.fits" evtable="EVENTS" scfile=/scratch/kocevski/17035/ft2_4FGL_J2334.2+0736_daily_bin285.fits sctable="SC_DATA" outfile=/scratch/kocevski/17035/ltcube_313200001_313459201_4FGL_J2334.2+0736_daily_bin285.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/17035/ft2_4FGL_J2334.2+0736_daily_bin285.fits
.....................!
real 15.16
user 14.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17035/ft1_filtered_4FGL_J2334.2+0736_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/17035/ft2_4FGL_J2334.2+0736_daily_bin285.fits sctable="SC_DATA" expcube=/scratch/kocevski/17035/ltcube_313200001_313459201_4FGL_J2334.2+0736_daily_bin285.fits outfile=/scratch/kocevski/17035/expmap_313200001_313459201_4FGL_J2334.2+0736_daily_bin285.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/17035/ltcube_313200001_313459201_4FGL_J2334.2+0736_daily_bin285.fits
.....................!
real 190.33
user 185.05
sys 4.89

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/17035/ft1_filtered_4FGL_J2334.2+0736_daily_bin285.fits scfile=/scratch/kocevski/17035/ft2_4FGL_J2334.2+0736_daily_bin285.fits outfile=/scratch/kocevski/17035/cmap_313200001_313459201_4FGL_J2334.2+0736_daily_bin285.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17035/ft1_filtered_4FGL_J2334.2+0736_daily_bin285.fits scfile=/scratch/kocevski/17035/ft2_4FGL_J2334.2+0736_daily_bin285.fits outfile=/scratch/kocevski/17035/cmap_HighResolution_313200001_313459201_4FGL_J2334.2+0736_daily_bin285.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    626.00       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    148.47       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.840       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .27275E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.827       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12198E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .33573       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5660       1.0000         .10000E-03   10000.    
    13 'Prefactor '    84.302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.318       1.0000         .10000E-03   10000.    
    16 'norm      '    17.105       1.0000         .10000E-03   10000.    
    17 'norm      '    21.506       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3571       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4897       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22905E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4898       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2050       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72563       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10563.25     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2421 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.787       -.78306E-06** at limit **
   2  Prefactor     626.00        1.0077        .16892E-07   -.10248E-02
   3  Prefactor     .10063E-03    37.624       -.97577E-06** at limit **
   4  Prefactor     148.46        2.2604        .39385E-06   -.43944E-02
   5  Prefactor     16.842        6.5002       -.30888E-05   -.25083E-02
   6  Prefactor     .10000E-03    4.2311        .26212E-06** at limit **
   7  norm          .24526E-01    3.0574       -.42089E-06   -.10506E-03
   8  Prefactor     .10000E-03    3.3593       -.50205E-07** at limit **
   9  Prefactor     37.820        2.4066        .61010E-06   -.92550E-03
  10  Prefactor     .11932E-03    160.47       -.33664E-04** at limit **
  11  norm          .18557        86.549        .15980E-04   -.10743E-02
  12  Prefactor     1.6226        11.772        .17290E-05    .77125E-03
  13  Prefactor     84.302        1.0057       -.31255E-07    .14609E-03
  14  Prefactor     .10000E-03    8.3970       -.56957E-05** at limit **
  15  Prefactor     40.352        9.4639       -.18669E-06    .38244E-02
  16  norm          17.102        12.130        .64885E-05    .41123E-02
  17  norm          21.507        1.1999        .34147E-06   -.38313E-03
  18  Prefactor     2.3571        2.7993       -.16077E-06   -.32764E-03
  19  Prefactor     6.4843        1.1766       -.43165E-06    .22813E-04
  20  Prefactor     .10064E-03    37.630       -.92934E-06** at limit **
  21  Prefactor     6.4875        6.9715       -.89170E-05   -.17308E-02
  22  Prefactor     .10000E-03    8.2923        .47262E-05** at limit **
  23  Normalizat    1.2051        .22137        .69977E-06    .51633E-03
  24  Prefactor     .72568        .13634        .29394E-06    .46338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 626.001
  Prefactor  = 0.000100635
  Prefactor  = 148.464
  Prefactor  = 16.842
  Prefactor  = 0.0001
  norm       = 0.0245264
  Prefactor  = 0.0001
  Prefactor  = 37.8202
  Prefactor  = 0.000119323
  norm       = 0.185567
  Prefactor  = 1.62264
  Prefactor  = 84.3022
  Prefactor  = 0.0001
  Prefactor  = 40.3521
  norm       = 17.1016
  norm       = 21.5075
  Prefactor  = 2.35706
  Prefactor  = 6.48431
  Prefactor  = 0.000100643
  Prefactor  = 6.48751
  Prefactor  = 0.000100002
  Normalizat = 1.20506
  Prefactor  = 0.725682
 **********
 **   18 **HESSE 
 **********

 FCN=   10563.25     FROM HESSE     STATUS=OK           461 CALLS     2882 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.500        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     626.00        107.29        .41281E-03   -1.0650    
   3  Prefactor     .10063E-03    83.670        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     148.46        22.729        .82685E-03   -1.3265    
   5  Prefactor     16.842        14.076        .24400E-02   -1.4887    
   6  Prefactor     .10000E-03    4.2303        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .24526E-01    .30338        .30643E-01   -1.5677    
   8  Prefactor     .10000E-03    3.3598        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.820        24.563        .16291E-02   -1.4477    
  10  Prefactor     .11932E-03    227.82        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .18557        6.8408        .10581       -1.5622    
  12  Prefactor     1.6226        15.810        .84965E-02   -1.5453    
  13  Prefactor     84.302        121.54        .10938E-02   -1.3869    
  14  Prefactor     .10000E-03    8.2995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.352        24.975        .15782E-02   -1.4437    
  16  norm          17.102        14.492        .24210E-02   -1.4881    
  17  norm          21.507        19.878        .21593E-02   -1.4780    
  18  Prefactor     2.3571        3.0569        .66738E-02   -1.5401    
  19  Prefactor     6.4843        22.611        .39385E-02   -1.5199    
  20  Prefactor     .10064E-03    8.0652        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.4875        7.0261        .39385E-02   -1.5199    
  22  Prefactor     .10000E-03    8.2158        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2051        .19128        .74863E-01   -.86447    
  24  Prefactor     .72568        .11627        .42741E-01   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65434e-07
Minuit parameter uncertainties:
  1  0.000326019
  2  107.322
  3  0.0145945
  4  22.7306
  5  14.0793
  6  2.87104e-05
  7  0.172171
  8  4.48073e-06
  9  24.57
  10  0.133206
  11  2.25305
  12  10.133
  13  121.905
  14  5.5802e-05
  15  24.9819
  16  14.4948
  17  19.8843
  18  3.0571
  19  22.6411
  20  0.00455438
  21  7.02695
  22  0.000259113
  23  0.191394
  24  0.116312
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  4.035e+01  2.498e+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:  7.257e-01  1.163e-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:  1.205e+00  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.48
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 7.44e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.38e-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) = 10563.1804005
delta logL = 0.0658681437872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10563.1771634
delta logL = 0.0691052164984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.355       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6745       1.0000          .0000       10.000    
     3 'Normalizat'    1.1899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73216       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=   10563.18     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      302 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.360        31.484        .69383E-04    .95035E-05
   2  Index         2.6746        .62928        .69866E-02    .71257E-03
   3  Normalizat    1.1899        .22008        .33307E-03   -.13401E-03
   4  Prefactor     .73210        .13742        .26149E-03   -.35303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.3603
  Index      = 2.67465
  Normalizat = 1.18993
  Prefactor  = 0.732101
 **********
 **   18 **HESSE 
 **********

 FCN=   10563.18     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.360        29.006        .27753E-05   -1.4552    
   2  Index         2.6746        .57922        .13973E-02   -.48371    
   3  Normalizat    1.1899        .21966        .13323E-04   -.86914    
   4  Prefactor     .73210        .13722        .10459E-04   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45888e-11
Minuit parameter uncertainties:
  1  29.0178
  2  0.580887
  3  0.219828
  4  0.137288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17035': 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) = 10563.177163
delta logL = 0.0691056420874

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.336e+01  2.902e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.675e+00  5.809e-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:  7.321e-01  1.373e-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:  1.190e+00  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.67
Ra Dec: 353.557 7.602
Photon Index (Free Index): 2.67 +/- 0.58
Photon Flux (Free Index): 8.59e-08 +/- 5.70e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.27e-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/17035/cmap_HighResolution_313200001_313459201_4FGL_J2334.2+0736_daily_bin285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.44e-08', energy_flux2='2.11e-05', photon_flux_error='4.60e-08', dlogl='6.91e-02', energy_flux='2.23e-05', photon_flux2='8.59e-08', job_status='DONE', time_completed='2021-09-29 23:40:20.951181', photon_index_error2='0.58', photon_index2='2.67', ts='4.48', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.21', time_epoch_completed='1632984020.95', return_code='0', job_id='17035', GAL2='0.73', EG2='1.19', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.70e-08', ts2='4.67', photon_index='2.47' WHERE bin_id='285' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:40:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 17035: <4FGL_J2334.2+0736_daily_bin285> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin285 353.557 7.602 313200001 313459201 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 :                                   824.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             318.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

