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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin166
RA = 353.557, Dec = 7.602
tmin = 282355201, tmax = 282614401
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='16862', job_status='RUN', time_executed='2021-09-29 23:26:16.505806', time_epoch_executed='1632983176.51' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16862/ft1_4FGL_J2334.2+0736_daily_bin166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16862/ft2_4FGL_J2334.2+0736_daily_bin166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16862/ft1_4FGL_J2334.2+0736_daily_bin166.fits outfile=/scratch/kocevski/16862/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin166.fits ra=353.557 dec=7.602 rad=12.0 tmin=282355201.0 tmax=282614401.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.67
user 3.46
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/16862/ft2_4FGL_J2334.2+0736_daily_bin166.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/16862/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin166.fits evtable="EVENTS" outfile="/scratch/kocevski/16862/ft1_filtered_4FGL_J2334.2+0736_daily_bin166.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/16862/ft1_filtered_4FGL_J2334.2+0736_daily_bin166.fits" evtable="EVENTS" scfile=/scratch/kocevski/16862/ft2_4FGL_J2334.2+0736_daily_bin166.fits sctable="SC_DATA" outfile=/scratch/kocevski/16862/ltcube_282355201_282614401_4FGL_J2334.2+0736_daily_bin166.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/16862/ft2_4FGL_J2334.2+0736_daily_bin166.fits
.....................!
real 11.62
user 11.27
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16862/ft1_filtered_4FGL_J2334.2+0736_daily_bin166.fits evtable="EVENTS" scfile=/scratch/kocevski/16862/ft2_4FGL_J2334.2+0736_daily_bin166.fits sctable="SC_DATA" expcube=/scratch/kocevski/16862/ltcube_282355201_282614401_4FGL_J2334.2+0736_daily_bin166.fits outfile=/scratch/kocevski/16862/expmap_282355201_282614401_4FGL_J2334.2+0736_daily_bin166.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/16862/ltcube_282355201_282614401_4FGL_J2334.2+0736_daily_bin166.fits
.....................!
real 190.64
user 185.21
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/16862/ft1_filtered_4FGL_J2334.2+0736_daily_bin166.fits scfile=/scratch/kocevski/16862/ft2_4FGL_J2334.2+0736_daily_bin166.fits outfile=/scratch/kocevski/16862/cmap_282355201_282614401_4FGL_J2334.2+0736_daily_bin166.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1296       1.0000         .10000E-03   10000.    
     2 'Prefactor '    320.55       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.738       1.0000         .10000E-03   10000.    
     4 'Prefactor '    87.688       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.701       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6376       1.0000         .10000E-03   10000.    
     7 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11341E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.016       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10790       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6173       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0434       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0581       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=   9748.417     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2396 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1316        7.0658        .85944E-05    .25011E-03
   2  Prefactor     320.54        84.429        .55838E-06    .55059E-04
   3  Prefactor     11.740        33.926        .78752E-06    .31149E-04
   4  Prefactor     87.689        18.861        .59983E-07    .56704E-03
   5  Prefactor     25.701        16.047       -.34974E-06    .13297E-03
   6  Prefactor     4.6381        7.2226        .72337E-06    .13650E-03
   7  norm          .10000E-03    .28424        .13023E-06** at limit **
   8  Prefactor     .10000E-03    2.2584       -.19078E-07** at limit **
   9  Prefactor     .10000E-03    67.293       -.21179E-05** at limit **
  10  Prefactor     .10000E-03    15.074       -.68435E-06** at limit **
  11  norm          .10000E-03    5.0586        .14526E-06** at limit **
  12  Prefactor     .21911        41.922        .33872E-04   -.11999E-03
  13  Prefactor     .10000E-03    159.35        .49175E-05** at limit **
  14  Prefactor     10.009        7.9806       -.36270E-06   -.79041E-03
  15  Prefactor     .10000E-03    9.7404       -.80752E-06** at limit **
  16  norm          .10000E-03    14.087        .10795E-05** at limit **
  17  norm          .10000E-03    10.210        .13481E-05** at limit **
  18  Prefactor     .12632        3.0233       -.67855E-05   -.26586E-03
  19  Prefactor     4.6179        16.587        .56198E-06    .61856E-05
  20  Prefactor     .10000E-03    10.134        .47859E-06** at limit **
  21  Prefactor     .10000E-03    5.3833       -.28268E-06** at limit **
  22  Prefactor     .10000E-03    11.226       -.74026E-06** at limit **
  23  Normalizat    1.0434        .20561       -.30686E-05    .47651E-03
  24  Prefactor     1.0580        .12781        .14074E-05    .94583E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.1316
  Prefactor  = 320.542
  Prefactor  = 11.7396
  Prefactor  = 87.6895
  Prefactor  = 25.7006
  Prefactor  = 4.63806
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.219112
  Prefactor  = 0.000100001
  Prefactor  = 10.0088
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.12632
  Prefactor  = 4.61792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.04337
  Prefactor  = 1.05804
 **********
 **   18 **HESSE 
 **********

 FCN=   9748.417     FROM HESSE     STATUS=OK           393 CALLS     2789 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1316        18.387        .14127E-02   -1.5416    
   2  Prefactor     320.54        84.386        .22709E-04   -1.2108    
   3  Prefactor     11.740        33.961        .11693E-03   -1.5023    
   4  Prefactor     87.689        18.851        .42905E-04   -1.3832    
   5  Prefactor     25.701        16.038        .79018E-04   -1.4694    
   6  Prefactor     4.6381        7.3188        .93445E-03   -1.5277    
   7  norm          .10000E-03    .40643        .10197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2620        .14490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    68.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.1292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .21911        52.156        .39659E-02   -1.5614    
  13  Prefactor     .10000E-03    159.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.009        8.0554        .12661E-03   -1.5075    
  15  Prefactor     .10000E-03    9.7691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .12632        16.650        .23547E-02   -1.5637    
  19  Prefactor     4.6179        16.576        .18731E-03   -1.5278    
  20  Prefactor     .10000E-03    10.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0434        .23747        .35585E-03   -.91591    
  24  Prefactor     1.0580        .14956        .23108E-03   -.90819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4116e-08
Minuit parameter uncertainties:
  1  12.5258
  2  84.4179
  3  34.0171
  4  18.852
  5  16.0405
  6  7.32023
  7  9.41129e-06
  8  7.29882e-06
  9  0.000915534
  10  8.02374e-06
  11  3.65804e-05
  12  6.76549
  13  0.000630848
  14  8.05628
  15  4.33187e-05
  16  0.000263185
  17  0.000199151
  18  2.90022
  19  16.5928
  20  0.000106672
  21  6.18125e-05
  22  0.000211157
  23  0.237716
  24  0.149622
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  4.332e-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.058e+00  1.496e-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.043e+00  2.377e-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: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/16862/likelihoodResults_282355201_282614401_4FGL_J2334.2+0736_daily_bin166.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9748.41764132
delta logL = -0.000487892541059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9748.41715373
delta logL = -3.02288754028e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4588       1.0000          .0000       10.000    
     3 'Normalizat'    1.0432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0582       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=   9748.417     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2191.3        .18142E-02** at limit **
   2  Index         2.4419        6.9937        .50000        .14964E-04
   3  Normalizat    1.0434        .17522        .35585E-03    .14313E-04
   4  Prefactor     1.0580        .11530        .23108E-03    .20073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.44192
  Normalizat = 1.04337
  Prefactor  = 1.05804
 **********
 **   18 **HESSE 
 **********

 FCN=   9748.417     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4419        6.2209        .50000       -.53706    
   3  Normalizat    1.0434        .22560        .14234E-04   -.91591    
   4  Prefactor     1.0580        .14853        .92432E-05   -.90819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66969e-10
Minuit parameter uncertainties:
  1  0.000307188
  2  4.40938
  3  0.225807
  4  0.148583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16862': 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) = 9748.41715332
delta logL = 1.004555088e-07

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  3.072e-04  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.442e+00  4.409e+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.058e+00  1.486e-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.043e+00  2.258e-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/16862/cmap_HighResolution_282355201_282614401_4FGL_J2334.2+0736_daily_bin166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-29 23:40:30.987183', job_id='16862', GAL2='1.06', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632984030.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='166' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:40:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 16862: <4FGL_J2334.2+0736_daily_bin166> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin166 353.557 7.602 282355201 282614401 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 :                                   843.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

