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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1353
RA = 338.691, Dec = 9.732
tmin = 590025601, tmax = 590284801
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='371264', job_status='RUN', time_executed='2021-09-28 15:17:58.775935', time_epoch_executed='1632867478.78' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371264

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371264/ft1_4FGL_J2234.7+0943_daily_bin1353.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371264/ft2_4FGL_J2234.7+0943_daily_bin1353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371264/ft1_4FGL_J2234.7+0943_daily_bin1353.fits outfile=/scratch/kocevski/371264/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1353.fits ra=338.691 dec=9.732 rad=12.0 tmin=590025601.0 tmax=590284801.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.94
user 3.70
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/371264/ft2_4FGL_J2234.7+0943_daily_bin1353.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/371264/ft2_4FGL_J2234.7+0943_daily_bin1353.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/371264/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1353.fits evtable="EVENTS" outfile="/scratch/kocevski/371264/ft1_filtered_4FGL_J2234.7+0943_daily_bin1353.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371264/ft1_filtered_4FGL_J2234.7+0943_daily_bin1353.fits" evtable="EVENTS" scfile=/scratch/kocevski/371264/ft2_4FGL_J2234.7+0943_daily_bin1353.fits sctable="SC_DATA" outfile=/scratch/kocevski/371264/ltcube_590025601_590284801_4FGL_J2234.7+0943_daily_bin1353.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/371264/ft2_4FGL_J2234.7+0943_daily_bin1353.fits
.....................!
real 11.71
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371264/ft1_filtered_4FGL_J2234.7+0943_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/371264/ft2_4FGL_J2234.7+0943_daily_bin1353.fits sctable="SC_DATA" expcube=/scratch/kocevski/371264/ltcube_590025601_590284801_4FGL_J2234.7+0943_daily_bin1353.fits outfile=/scratch/kocevski/371264/expmap_590025601_590284801_4FGL_J2234.7+0943_daily_bin1353.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/371264/ltcube_590025601_590284801_4FGL_J2234.7+0943_daily_bin1353.fits
.....................!
real 189.33
user 184.76
sys 4.27

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2234.7+0943 @ 338.691 9.732

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/371264/ft1_filtered_4FGL_J2234.7+0943_daily_bin1353.fits scfile=/scratch/kocevski/371264/ft2_4FGL_J2234.7+0943_daily_bin1353.fits outfile=/scratch/kocevski/371264/cmap_590025601_590284801_4FGL_J2234.7+0943_daily_bin1353.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=338.691 yref=9.732 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371264/ft1_filtered_4FGL_J2234.7+0943_daily_bin1353.fits scfile=/scratch/kocevski/371264/ft2_4FGL_J2234.7+0943_daily_bin1353.fits outfile=/scratch/kocevski/371264/cmap_HighResolution_590025601_590284801_4FGL_J2234.7+0943_daily_bin1353.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=338.691 yref=9.732 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371264/ft1_filtered_4FGL_J2234.7+0943_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/371264/ft2_4FGL_J2234.7+0943_daily_bin1353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371264/Model_4FGL_J2234.7+0943_daily_bin1353.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/371264/ft1_filtered_4FGL_J2234.7+0943_daily_bin1353.fits.....................!
real 82.95
user 81.61
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/371264/ft1_filtered_4FGL_J2234.7+0943_daily_bin1353.fits', '/scratch/kocevski/371264/ft2_4FGL_J2234.7+0943_daily_bin1353.fits', expMap='/scratch/kocevski/371264/expmap_590025601_590284801_4FGL_J2234.7+0943_daily_bin1353.fits', expCube='/scratch/kocevski/371264/ltcube_590025601_590284801_4FGL_J2234.7+0943_daily_bin1353.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/371264/Model_4FGL_J2234.7+0943_daily_bin1353.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.7+0943'

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.256e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/371264/ft1_filtered_4FGL_J2234.7+0943_daily_bin1353.fits
Spacecraft file(s): /scratch/kocevski/371264/ft2_4FGL_J2234.7+0943_daily_bin1353.fits
Exposure map: /scratch/kocevski/371264/expmap_590025601_590284801_4FGL_J2234.7+0943_daily_bin1353.fits
Exposure cube: /scratch/kocevski/371264/ltcube_590025601_590284801_4FGL_J2234.7+0943_daily_bin1353.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/371264/Model_4FGL_J2234.7+0943_daily_bin1353.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) = 8028.34889689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5502       1.0000         .10000E-03   10000.    
     2 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.957       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.755       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1224       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33511       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2532       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8877       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.663       1.0000         .10000E-03   10000.    
    14 'Prefactor '    152.60       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76368       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.099       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8378       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2917       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8028.348     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2383 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5487        3.2865       -.62590E-08   -.28605E-04
   2  norm          .10000E-03    19.882       -.74421E-05** at limit **
   3  norm          .10000E-03    .23466       -.50212E-07** at limit **
   4  Prefactor     18.952        17.852       -.40180E-05   -.55748E-05
   5  Prefactor     42.746        28.308       -.93997E-05    .20090E-04
   6  Prefactor     .10000E-03    13.846        .16989E-04** at limit **
   7  norm          .10000E-03    2.2130       -.94104E-08** at limit **
   8  Prefactor     3.1223        10.435       -.18582E-05   -.18531E-03
   9  Prefactor     6.8274        16.336       -.28560E-05   -.37417E-04
  10  Prefactor     .33510        .18840       -.73391E-07   -.82051E-03
  11  Prefactor     9.2537        6.3267        .69589E-06    .17851E-02
  12  norm          1.8875        1.7049       -.66815E-07    .35586E-04
  13  Prefactor     14.664        18.704        .31814E-06   -.13513E-05
  14  Prefactor     152.60        31.922        .17689E-06    .23819E-04
  15  Prefactor     .10000E-03    6.7529        .11740E-05** at limit **
  16  Prefactor     .76364        .18002       -.43448E-07    .64597E-03
  17  Prefactor     61.084        47.897       -.17146E-04    .58810E-04
  18  Prefactor     .10000E-03    5.1716       -.33722E-06** at limit **
  19  Prefactor     9.8367        12.357       -.76585E-06   -.16569E-04
  20  Prefactor     .10000E-03    11.521       -.11202E-04** at limit **
  21  Normalizat    1.2921        .23024        .66295E-05   -.18492E-03
  22  Prefactor     .79840        .11614       -.44394E-06    .29536E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.54871
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.9524
  Prefactor  = 42.7464
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.12234
  Prefactor  = 6.82742
  Prefactor  = 0.3351
  Prefactor  = 9.25366
  norm       = 1.88745
  Prefactor  = 14.6637
  Prefactor  = 152.601
  Prefactor  = 0.0001
  Prefactor  = 0.763639
  Prefactor  = 61.0841
  Prefactor  = 0.0001
  Prefactor  = 9.83671
  Prefactor  = 0.0001
  Normalizat = 1.29206
  Prefactor  = 0.798396
 **********
 **   18 **HESSE 
 **********

 FCN=   8028.348     FROM HESSE     STATUS=OK           344 CALLS     2727 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5487        3.2862        .12046E-03   -1.5237    
   2  norm          .10000E-03    19.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .23704        .42378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.952        17.852        .91990E-04   -1.4837    
   5  Prefactor     42.746        28.333        .61310E-04   -1.4399    
   6  Prefactor     .10000E-03    13.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.2405        .13014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1223        10.388        .22945E-03   -1.5355    
   9  Prefactor     6.8274        16.353        .15354E-03   -1.5185    
  10  Prefactor     .33510        .18542        .26953E-04   -1.5592    
  11  Prefactor     9.2537        6.3887        .65875E-03   -1.5099    
  12  norm          1.8875        1.7085        .10581E-03   -1.5433    
  13  Prefactor     14.664        18.712        .10460E-03   -1.4942    
  14  Prefactor     152.60        31.850        .32630E-04   -1.3231    
  15  Prefactor     .10000E-03    6.7561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .76364        .18018        .17542E-04   -1.5533    
  17  Prefactor     61.084        47.845        .51332E-04   -1.4143    
  18  Prefactor     .10000E-03    5.2756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.8367        12.357        .12776E-03   -1.5081    
  20  Prefactor     .10000E-03    11.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2921        .27178        .32641E-03   -.83804    
  22  Prefactor     .79840        .13771        .21591E-03   -.99787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37712e-09
Minuit parameter uncertainties:
  1  3.28629
  2  8.91074e-06
  3  1.41842e-06
  4  17.857
  5  28.3421
  6  6.95071e-06
  7  9.0867e-06
  8  10.3938
  9  16.3639
  10  0.185424
  11  6.38918
  12  1.70852
  13  18.7198
  14  31.8532
  15  6.94475e-06
  16  0.180181
  17  47.875
  18  1.89269e-05
  19  12.3604
  20  3.34485e-05
  21  0.27208
  22  0.137764
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  9.254e+00  6.389e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.984e-01  1.378e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.292e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.51
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 2.38e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.21e-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) = 8026.65029967
delta logL = 1.6974633836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8026.6493564
delta logL = 1.69840665582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9918       1.0000         .10000E-03   10000.    
     2 'Index1    '    .54874E-07   1.0000          .0000       10.000    
     3 'Normalizat'    1.2959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80157       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8026.649     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      208 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9889        6.3548        .33416E-02   -.25181E-02
   2  Index1         .0000        .31556        .50000    ** at limit **
   3  Normalizat    1.2968        .21528        .73642E-01    .10940E-04
   4  Prefactor     .80113        .11561        .43738E-01    .10082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.9889
  Index1     = 0
  Normalizat = 1.29684
  Prefactor  = 0.801127
 **********
 **   18 **HESSE 
 **********

 FCN=   8026.649     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9889        6.3492        .66831E-03   -1.5108    
   2  Index1         .0000        .39590        .15557       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2968        .25441        .32589E-03   -.83661    
   4  Prefactor     .80113        .13676        .21559E-03   -.99687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29955e-12
Minuit parameter uncertainties:
  1  6.34967
  2  4.28665e-10
  3  0.254652
  4  0.136822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371264': 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) = 8026.64934893
delta logL = 1.69841412292

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  8.989e+00  6.350e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  0.000e+00  4.287e-10  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.011e-01  1.368e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.297e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.90
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 1.05e-08 +/- 7.40e-09
Energy Flux (Free Index): 2.39e-05 +/- 1.69e-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/371264/cmap_HighResolution_590025601_590284801_4FGL_J2234.7+0943_daily_bin1353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.38e-08', energy_flux2='2.39e-05', photon_flux_error='1.64e-08', dlogl='1.70e+00', energy_flux='1.75e-05', photon_flux2='1.05e-08', job_status='DONE', time_completed='2021-09-28 15:28:37.632926', photon_index_error2='0.00', photon_index2='0.00', ts='13.51', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='1.29', time_epoch_completed='1632868117.63', return_code='0', job_id='371264', GAL2='0.80', EG2='1.30', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='7.40e-09', ts2='16.90', photon_index='0.94' WHERE bin_id='1353' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:28:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 371264: <4FGL_J2234.7+0943_daily_bin1353> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1353> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:16:01 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:16:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:16:03 2021
Terminated at Tue Sep 28 15:28:38 2021
Results reported at Tue Sep 28 15:28:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1353 338.691 9.732 590025601 590284801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.7+0943 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   633.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            757 sec.

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

