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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin273
RA = 353.557, Dec = 7.602
tmin = 310089601, tmax = 310348801
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='17018', job_status='RUN', time_executed='2021-09-29 23:26:15.587158', time_epoch_executed='1632983175.59' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17018/ft1_4FGL_J2334.2+0736_daily_bin273.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17018/ft2_4FGL_J2334.2+0736_daily_bin273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17018/ft1_4FGL_J2334.2+0736_daily_bin273.fits outfile=/scratch/kocevski/17018/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin273.fits ra=353.557 dec=7.602 rad=12.0 tmin=310089601.0 tmax=310348801.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.37
user 3.16
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17018/ft1_filtered_4FGL_J2334.2+0736_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/17018/ft2_4FGL_J2334.2+0736_daily_bin273.fits sctable="SC_DATA" expcube=/scratch/kocevski/17018/ltcube_310089601_310348801_4FGL_J2334.2+0736_daily_bin273.fits outfile=/scratch/kocevski/17018/expmap_310089601_310348801_4FGL_J2334.2+0736_daily_bin273.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/17018/ltcube_310089601_310348801_4FGL_J2334.2+0736_daily_bin273.fits
.....................!
real 190.00
user 184.36
sys 5.29

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/17018/ft1_filtered_4FGL_J2334.2+0736_daily_bin273.fits scfile=/scratch/kocevski/17018/ft2_4FGL_J2334.2+0736_daily_bin273.fits outfile=/scratch/kocevski/17018/cmap_310089601_310348801_4FGL_J2334.2+0736_daily_bin273.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17018/ft1_filtered_4FGL_J2334.2+0736_daily_bin273.fits scfile=/scratch/kocevski/17018/ft2_4FGL_J2334.2+0736_daily_bin273.fits outfile=/scratch/kocevski/17018/cmap_HighResolution_310089601_310348801_4FGL_J2334.2+0736_daily_bin273.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6443       1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.430       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.944       1.0000         .10000E-03   10000.    
     7 'norm      '    .23991       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.798       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.883       1.0000         .10000E-03   10000.    
    11 'norm      '    5.5517       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.046       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4147       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12188E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4201       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3924       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81042       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=   9256.209     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2799 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6430        11.829       -.17825E-05   -.89826E-04
   2  Prefactor     77.538        69.517       -.94691E-04   -.12495E-04
   3  Prefactor     .10000E-03    19.840        .23031E-06** at limit **
   4  Prefactor     40.434        15.717        .78884E-05    .10134E-03
   5  Prefactor     .10000E-03    15.776        .76397E-06** at limit **
   6  Prefactor     11.943        11.950       -.61576E-06    .41096E-04
   7  norm          .23972        .56896       -.69464E-06   -.32902E-02
   8  Prefactor     .10000E-03    5.7113        .15171E-06** at limit **
   9  Prefactor     18.796        21.544       -.17683E-05    .22259E-04
  10  Prefactor     21.884        23.329       -.29940E-06    .26264E-04
  11  norm          5.5489        7.0128       -.35610E-05   -.16882E-03
  12  Prefactor     .10000E-03    2.9328        .66468E-07** at limit **
  13  Prefactor     .10000E-03    52.124       -.33622E-05** at limit **
  14  Prefactor     .10000E-03    3.1567       -.90504E-07** at limit **
  15  Prefactor     31.038        22.907       -.14030E-05    .49254E-04
  16  norm          1.4095        30.466       -.95598E-05   -.22931E-03
  17  norm          .10000E-03    4.6574       -.28383E-07** at limit **
  18  Prefactor     .10000E-03    2.2453       -.15153E-06** at limit **
  19  Prefactor     .10000E-03    91.844        .11026E-04** at limit **
  20  Prefactor     3.4168        16.308       -.36045E-05   -.89961E-04
  21  Prefactor     .10000E-03    3.5880       -.16929E-06** at limit **
  22  Prefactor     .10000E-03    3.7949       -.15968E-07** at limit **
  23  Normalizat    1.3925        .19674        .36895E-05    .23006E-03
  24  Prefactor     .81039        .12244        .29486E-05    .29971E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.64302
  Prefactor  = 77.5385
  Prefactor  = 0.0001
  Prefactor  = 40.4344
  Prefactor  = 0.000100001
  Prefactor  = 11.9434
  norm       = 0.239721
  Prefactor  = 0.0001
  Prefactor  = 18.7955
  Prefactor  = 21.8841
  norm       = 5.54888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0385
  norm       = 1.40949
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.41684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3925
  Prefactor  = 0.810387
 **********
 **   18 **HESSE 
 **********

 FCN=   9256.209     FROM HESSE     STATUS=OK           397 CALLS     3196 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6430        11.827        .18675E-03   -1.5277    
   2  Prefactor     77.538        69.487        .22787E-03   -1.3945    
   3  Prefactor     .10000E-03    19.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.434        15.693        .63041E-04   -1.4435    
   5  Prefactor     .10000E-03    15.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.943        11.954        .11591E-03   -1.5017    
   7  norm          .23972        .56502        .10790E-03   -1.5610    
   8  Prefactor     .10000E-03    5.7447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.796        21.545        .92379E-04   -1.4841    
  10  Prefactor     21.884        23.331        .85624E-04   -1.4772    
  11  norm          5.5489        6.9976        .17051E-03   -1.5237    
  12  Prefactor     .10000E-03    2.9450        .16073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    52.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1649        .16690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.038        22.888        .71910E-04   -1.4593    
  16  norm          1.4095        31.128        .36402E-03   -1.5471    
  17  norm          .10000E-03    4.6591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3003        .28134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    93.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4168        16.276        .21874E-03   -1.5338    
  21  Prefactor     .10000E-03    3.6202        .17796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3925        .23001        .30670E-03   -.80846    
  24  Prefactor     .81039        .14313        .24376E-03   -.99347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70559e-09
Minuit parameter uncertainties:
  1  11.8328
  2  69.5596
  3  8.3719e-06
  4  15.6941
  5  0.000299365
  6  11.9568
  7  0.565028
  8  2.13249e-05
  9  21.5539
  10  23.3407
  11  6.99862
  12  2.05909e-05
  13  1.61418e-05
  14  1.03782e-05
  15  22.894
  16  13.2549
  17  6.6163e-06
  18  2.03388e-05
  19  0.000995556
  20  14.9211
  21  2.20669e-05
  22  7.03177e-06
  23  0.230182
  24  0.143196
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.104e+01  2.289e+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:  8.104e-01  1.432e-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.393e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.61
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.73e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/17018/likelihoodResults_310089601_310348801_4FGL_J2334.2+0736_daily_bin273.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) = 9256.19356094
delta logL = 0.015563305793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9256.18486401
delta logL = 0.0242602390517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.665       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6413       1.0000          .0000       10.000    
     3 'Normalizat'    1.3801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81507       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=   9256.185     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      255 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.660        29.132        .76168E-04    .17613E-03
   2  Index         2.6413        .87520        .88989E-02    .75625E-04
   3  Normalizat    1.3801        .23526        .30782E-03    .22131E-03
   4  Prefactor     .81508        .14367        .24313E-03    .88377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6597
  Index      = 2.64133
  Normalizat = 1.38011
  Prefactor  = 0.81508
 **********
 **   18 **HESSE 
 **********

 FCN=   9256.185     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.660        26.363        .15234E-04   -1.4656    
   2  Index         2.6413        .79068        .35596E-03   -.49126    
   3  Normalizat    1.3801        .23375        .61564E-04   -.81206    
   4  Prefactor     .81508        .14320        .97250E-05   -.99175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36574e-10
Minuit parameter uncertainties:
  1  26.3743
  2  0.79498
  3  0.233935
  4  0.143265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17018': 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) = 9256.18486399
delta logL = 0.024260261649

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.766e+01  2.637e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.641e+00  7.950e-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:  8.151e-01  1.433e-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.380e+00  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 353.557 7.602
Photon Index (Free Index): 2.64 +/- 0.79
Photon Flux (Free Index): 6.73e-08 +/- 6.50e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.19e-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/17018/cmap_HighResolution_310089601_310348801_4FGL_J2334.2+0736_daily_bin273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='5.73e-08', energy_flux2='1.70e-05', photon_flux_error='4.22e-08', dlogl='2.43e-02', energy_flux='1.72e-05', photon_flux2='6.73e-08', job_status='DONE', time_completed='2021-09-29 23:40:36.065190', photon_index_error2='0.79', photon_index2='2.64', ts='3.61', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.19e-05', EG='1.39', time_epoch_completed='1632984036.07', return_code='0', job_id='17018', GAL2='0.82', EG2='1.38', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='6.50e-08', ts2='3.69', photon_index='2.47' WHERE bin_id='273' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 17018: <4FGL_J2334.2+0736_daily_bin273> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin273 353.557 7.602 310089601 310348801 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 :                                   848.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

