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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1311
RA = 338.691, Dec = 9.732
tmin = 579139201, tmax = 579398401
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='371202', job_status='RUN', time_executed='2021-09-28 15:19:26.994457', time_epoch_executed='1632867566.99' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371202/ft1_4FGL_J2234.7+0943_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371202/ft2_4FGL_J2234.7+0943_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371202/ft1_4FGL_J2234.7+0943_daily_bin1311.fits outfile=/scratch/kocevski/371202/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1311.fits ra=338.691 dec=9.732 rad=12.0 tmin=579139201.0 tmax=579398401.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.48
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371202/ft1_filtered_4FGL_J2234.7+0943_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/371202/ft2_4FGL_J2234.7+0943_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/371202/ltcube_579139201_579398401_4FGL_J2234.7+0943_daily_bin1311.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/371202/ft2_4FGL_J2234.7+0943_daily_bin1311.fits
.....................!
real 13.50
user 13.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371202/ft1_filtered_4FGL_J2234.7+0943_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/371202/ft2_4FGL_J2234.7+0943_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/371202/ltcube_579139201_579398401_4FGL_J2234.7+0943_daily_bin1311.fits outfile=/scratch/kocevski/371202/expmap_579139201_579398401_4FGL_J2234.7+0943_daily_bin1311.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/371202/ltcube_579139201_579398401_4FGL_J2234.7+0943_daily_bin1311.fits
.....................!
real 193.49
user 188.09
sys 4.71

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/371202/ft1_filtered_4FGL_J2234.7+0943_daily_bin1311.fits scfile=/scratch/kocevski/371202/ft2_4FGL_J2234.7+0943_daily_bin1311.fits outfile=/scratch/kocevski/371202/cmap_579139201_579398401_4FGL_J2234.7+0943_daily_bin1311.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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371202/ft1_filtered_4FGL_J2234.7+0943_daily_bin1311.fits scfile=/scratch/kocevski/371202/ft2_4FGL_J2234.7+0943_daily_bin1311.fits outfile=/scratch/kocevski/371202/cmap_HighResolution_579139201_579398401_4FGL_J2234.7+0943_daily_bin1311.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/371202/ft1_filtered_4FGL_J2234.7+0943_daily_bin1311.fits', '/scratch/kocevski/371202/ft2_4FGL_J2234.7+0943_daily_bin1311.fits', expMap='/scratch/kocevski/371202/expmap_579139201_579398401_4FGL_J2234.7+0943_daily_bin1311.fits', expCube='/scratch/kocevski/371202/ltcube_579139201_579398401_4FGL_J2234.7+0943_daily_bin1311.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/371202/Model_4FGL_J2234.7+0943_daily_bin1311.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/371202/ft1_filtered_4FGL_J2234.7+0943_daily_bin1311.fits
Spacecraft file(s): /scratch/kocevski/371202/ft2_4FGL_J2234.7+0943_daily_bin1311.fits
Exposure map: /scratch/kocevski/371202/expmap_579139201_579398401_4FGL_J2234.7+0943_daily_bin1311.fits
Exposure cube: /scratch/kocevski/371202/ltcube_579139201_579398401_4FGL_J2234.7+0943_daily_bin1311.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/371202/Model_4FGL_J2234.7+0943_daily_bin1311.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) = 10127.0398201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .14167E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .14009       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.094       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23520E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.103       1.0000         .10000E-03   10000.    
     7 'norm      '    7.3882       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4490       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.320       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82441       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.992       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4146       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    76.335       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.621       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7440       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.034       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26775E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1625       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86167       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=   10126.97     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2119 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6347        .52969E-07** at limit **
   2  norm          .10312E-03    17.145       -.13257E-05** at limit **
   3  norm          .14024        .36343       -.35704E-06   -.48066E-02
   4  Prefactor     13.094        12.469        .64247E-06    .37361E-04
   5  Prefactor     .10122E-03    10.875       -.37516E-06** at limit **
   6  Prefactor     13.104        26.142        .17615E-05    .48410E-05
   7  norm          7.3898        4.9045       -.71236E-06   -.16610E-03
   8  Prefactor     8.4521        11.329       -.31517E-05   -.60481E-04
   9  Prefactor     27.331        15.115        .10004E-04    .18534E-04
  10  Prefactor     .82443        .22042       -.92537E-08   -.28985E-03
  11  Prefactor     16.995        8.7706        .19260E-05   -.13201E-04
  12  norm          1.4150        1.4401       -.84037E-06   -.72963E-03
  13  Prefactor     .10000E-03    12.416       -.52976E-07** at limit **
  14  Prefactor     76.311        21.861        .91659E-05    .19408E-04
  15  Prefactor     13.627        12.633        .59480E-05   -.87125E-06
  16  Prefactor     2.7440        .26889       -.69825E-07    .15509E-02
  17  Prefactor     12.071        42.251       -.11231E-04   -.88167E-05
  18  Prefactor     .10000E-03    3.4003       -.20347E-07** at limit **
  19  Prefactor     .10000E-03    16.578       -.11734E-06** at limit **
  20  Prefactor     .10000E-03    28.267        .10342E-05** at limit **
  21  Normalizat    1.1627        .21286       -.46472E-06    .73561E-04
  22  Prefactor     .86141        .11193       -.17096E-06    .10630E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000103115
  norm       = 0.140245
  Prefactor  = 13.0945
  Prefactor  = 0.000101219
  Prefactor  = 13.1041
  norm       = 7.38985
  Prefactor  = 8.45211
  Prefactor  = 27.3315
  Prefactor  = 0.824426
  Prefactor  = 16.9951
  norm       = 1.41502
  Prefactor  = 0.0001
  Prefactor  = 76.3109
  Prefactor  = 13.6268
  Prefactor  = 2.74396
  Prefactor  = 12.0707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16268
  Prefactor  = 0.861413
 **********
 **   18 **HESSE 
 **********

 FCN=   10126.97     FROM HESSE     STATUS=OK           372 CALLS     2491 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6769        .25095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10312E-03    18.287        .12213       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .14024        .32851        .95795E-03   -1.5633    
   4  Prefactor     13.094        12.466        .11069E-03   -1.4984    
   5  Prefactor     .10122E-03    13.872        .10031       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.104        26.159        .11066E-03   -1.4984    
   7  norm          7.3898        4.9033        .14756E-03   -1.5164    
   8  Prefactor     8.4521        11.326        .13791E-03   -1.5126    
   9  Prefactor     27.331        15.091        .76645E-04   -1.4662    
  10  Prefactor     .82443        .21996        .22821E-04   -1.5526    
  11  Prefactor     16.995        8.7752        .97161E-04   -1.4883    
  12  norm          1.4150        1.4281        .11745E-03   -1.5470    
  13  Prefactor     .10000E-03    12.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     76.311        21.819        .22980E-03   -1.3959    
  15  Prefactor     13.627        12.625        .10853E-03   -1.4970    
  16  Prefactor     2.7440        .26846        .15415E-04   -1.5377    
  17  Prefactor     12.071        42.652        .11548E-03   -1.5013    
  18  Prefactor     .10000E-03    10.121        .35828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1627        .25388        .35634E-03   -.87764    
  22  Prefactor     .86141        .13329        .22352E-03   -.97503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83839e-09
Minuit parameter uncertainties:
  1  3.98975e-06
  2  0.0151001
  3  0.328511
  4  12.4687
  5  0.00822719
  6  26.1818
  7  4.90352
  8  11.3289
  9  15.0933
  10  0.219961
  11  8.77586
  12  1.42817
  13  1.07271e-05
  14  21.821
  15  12.6275
  16  0.268462
  17  42.7598
  18  2.25163e-05
  19  5.95786e-05
  20  9.11331e-05
  21  0.254152
  22  0.133342
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.700e+01  8.776e+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:  8.614e-01  1.333e-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.163e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.82
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 4.37e-08 +/- 2.25e-08
Energy Flux (Fixed Index): 3.22e-05 +/- 1.66e-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) = 10126.6059241
delta logL = 0.361094322956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10126.5950794
delta logL = 0.371939019409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.919       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.3964       1.0000          .0000       10.000    
     3 'Normalizat'    1.1445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86406       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=   10126.60     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      274 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.916        119.91        .27861E-02    .13977E-02
   2  Index1        1.3961        5.5329        .15259        .15510E-03
   3  Normalizat    1.1445        .14980        .80984E-01    .18686E-04
   4  Prefactor     .86415        .53004E-01    .44545E-01   -.22099E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9158
  Index1     = 1.39614
  Normalizat = 1.14447
  Prefactor  = 0.864152
 **********
 **   18 **HESSE 
 **********

 FCN=   10126.60     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.916        9.3266        .55722E-03   -1.4989    
   2  Index1        1.3961        .55679        .85592E-02   -.80491    
   3  Normalizat    1.1445        .23972        .35851E-03   -.88337    
   4  Prefactor     .86415        .13189        .22306E-03   -.97405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03191e-08
Minuit parameter uncertainties:
  1  9.32761
  2  0.559217
  3  0.239954
  4  0.131936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371202': 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) = 10126.5950781
delta logL = 0.371940319112

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.292e+01  9.328e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.396e+00  5.592e-01  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.642e-01  1.319e-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.144e+00  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.52
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.40 +/- 0.56
Photon Flux (Free Index): 6.83e-08 +/- 4.49e-08
Energy Flux (Free Index): 3.03e-05 +/- 1.50e-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/371202/cmap_HighResolution_579139201_579398401_4FGL_J2234.7+0943_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.37e-08', energy_flux2='3.03e-05', photon_flux_error='2.25e-08', dlogl='3.72e-01', energy_flux='3.22e-05', photon_flux2='6.83e-08', job_status='DONE', time_completed='2021-09-28 15:31:29.486426', photon_index_error2='0.56', photon_index2='1.40', ts='7.82', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.16', time_epoch_completed='1632868289.49', return_code='0', job_id='371202', GAL2='0.86', EG2='1.14', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='4.49e-08', ts2='8.52', photon_index='0.94' WHERE bin_id='1311' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:31:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 371202: <4FGL_J2234.7+0943_daily_bin1311> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1311> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:15:55 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:15:57 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:15:57 2021
Terminated at Tue Sep 28 15:31:30 2021
Results reported at Tue Sep 28 15:31:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1311 338.691 9.732 579139201 579398401 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 :                                   719.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

