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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin776
RA = 338.691, Dec = 9.732
tmin = 440467201, tmax = 440726401
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='366556', job_status='RUN', time_executed='2021-09-28 15:05:42.611337', time_epoch_executed='1632866742.61' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366556

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366556/ft1_4FGL_J2234.7+0943_daily_bin776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366556/ft2_4FGL_J2234.7+0943_daily_bin776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366556/ft1_4FGL_J2234.7+0943_daily_bin776.fits outfile=/scratch/kocevski/366556/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin776.fits ra=338.691 dec=9.732 rad=12.0 tmin=440467201.0 tmax=440726401.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.44
user 3.24
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/366556/ft2_4FGL_J2234.7+0943_daily_bin776.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/366556/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin776.fits evtable="EVENTS" outfile="/scratch/kocevski/366556/ft1_filtered_4FGL_J2234.7+0943_daily_bin776.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366556/ft1_filtered_4FGL_J2234.7+0943_daily_bin776.fits" evtable="EVENTS" scfile=/scratch/kocevski/366556/ft2_4FGL_J2234.7+0943_daily_bin776.fits sctable="SC_DATA" outfile=/scratch/kocevski/366556/ltcube_440467201_440726401_4FGL_J2234.7+0943_daily_bin776.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/366556/ft2_4FGL_J2234.7+0943_daily_bin776.fits
.....................!
real 11.73
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366556/ft1_filtered_4FGL_J2234.7+0943_daily_bin776.fits evtable="EVENTS" scfile=/scratch/kocevski/366556/ft2_4FGL_J2234.7+0943_daily_bin776.fits sctable="SC_DATA" expcube=/scratch/kocevski/366556/ltcube_440467201_440726401_4FGL_J2234.7+0943_daily_bin776.fits outfile=/scratch/kocevski/366556/expmap_440467201_440726401_4FGL_J2234.7+0943_daily_bin776.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/366556/ltcube_440467201_440726401_4FGL_J2234.7+0943_daily_bin776.fits
.....................!
real 190.59
user 185.53
sys 4.72

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/366556/ft1_filtered_4FGL_J2234.7+0943_daily_bin776.fits scfile=/scratch/kocevski/366556/ft2_4FGL_J2234.7+0943_daily_bin776.fits outfile=/scratch/kocevski/366556/cmap_440467201_440726401_4FGL_J2234.7+0943_daily_bin776.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366556/ft1_filtered_4FGL_J2234.7+0943_daily_bin776.fits scfile=/scratch/kocevski/366556/ft2_4FGL_J2234.7+0943_daily_bin776.fits outfile=/scratch/kocevski/366556/cmap_HighResolution_440467201_440726401_4FGL_J2234.7+0943_daily_bin776.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/366556/ft1_filtered_4FGL_J2234.7+0943_daily_bin776.fits evtable="EVENTS" scfile=/scratch/kocevski/366556/ft2_4FGL_J2234.7+0943_daily_bin776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366556/Model_4FGL_J2234.7+0943_daily_bin776.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/366556/ft1_filtered_4FGL_J2234.7+0943_daily_bin776.fits.....................!
real 142.44
user 141.03
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10752E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9401       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.101       1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.892       1.0000         .10000E-03   10000.    
     7 'norm      '    42.097       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11711E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.623       1.0000         .10000E-03   10000.    
    12 'norm      '    10.253       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.796       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.857       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.087       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.027       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.557       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93716       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88707       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=   12507.61     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2360 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4668       -.99600E-07** at limit **
   2  norm          .10000E-03    23.213        .78185E-05** at limit **
   3  norm          1.9402        1.0765        .46464E-07   -.52627E-04
   4  Prefactor     .10000E-03    10.653        .15441E-04** at limit **
   5  Prefactor     30.105        22.991        .16752E-05   -.65840E-04
   6  Prefactor     59.900        35.015        .67936E-05   -.50153E-04
   7  norm          42.098        9.0431        .12384E-06    .30492E-04
   8  Prefactor     .10000E-03    42.874       -.66176E-05** at limit **
   9  Prefactor     .10000E-03    6.4797        .26483E-06** at limit **
  10  Prefactor     1.4647        .30422        .44448E-08    .74277E-03
  11  Prefactor     12.621        9.0152       -.14754E-06    .45968E-05
  12  norm          10.253        3.0804        .56803E-07    .13733E-03
  13  Prefactor     36.795        33.474       -.96892E-06    .12535E-04
  14  Prefactor     21.856        25.246       -.52793E-06   -.27534E-05
  15  Prefactor     .10000E-03    12.015       -.15589E-04** at limit **
  16  Prefactor     13.088        .54576        .20434E-07    .17488E-02
  17  Prefactor     .10000E-03    8.4390       -.33417E-05** at limit **
  18  Prefactor     .10000E-03    1.9753        .24505E-07** at limit **
  19  Prefactor     21.029        12.437        .10205E-06    .71130E-05
  20  Prefactor     27.555        29.731       -.14042E-05   -.81087E-05
  21  Normalizat    .93655        .24944       -.21330E-05   -.32858E-04
  22  Prefactor     .88740        .12786       -.27180E-07   -.78256E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.94016
  Prefactor  = 0.0001
  Prefactor  = 30.1047
  Prefactor  = 59.9003
  norm       = 42.098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4647
  Prefactor  = 12.6207
  norm       = 10.2532
  Prefactor  = 36.7953
  Prefactor  = 21.8563
  Prefactor  = 0.0001
  Prefactor  = 13.0876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0288
  Prefactor  = 27.5552
  Normalizat = 0.936546
  Prefactor  = 0.887399
 **********
 **   18 **HESSE 
 **********

 FCN=   12507.61     FROM HESSE     STATUS=OK           344 CALLS     2704 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0368        .26104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    23.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9402        1.0764        .29807E-04   -1.5429    
   4  Prefactor     .10000E-03    10.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.105        23.016        .73027E-04   -1.4610    
   6  Prefactor     59.900        35.023        .51844E-04   -1.4159    
   7  norm          42.098        9.0398        .61785E-04   -1.4409    
   8  Prefactor     .10000E-03    43.967        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4647        .30392        .26315E-04   -1.5466    
  11  Prefactor     12.621        9.0326        .11275E-03   -1.4997    
  12  norm          10.253        3.0814        .10103E-03   -1.5067    
  13  Prefactor     36.795        33.492        .66069E-04   -1.4494    
  14  Prefactor     21.856        25.244        .85675E-04   -1.4773    
  15  Prefactor     .10000E-03    12.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.088        .54674        .15899E-04   -1.4984    
  17  Prefactor     .10000E-03    8.4415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9779        .15350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.029        12.438        .87347E-04   -1.4791    
  20  Prefactor     27.555        29.830        .76317E-04   -1.4658    
  21  Normalizat    .93655        .29642        .51462E-03   -.95188    
  22  Prefactor     .88740        .15355        .28505E-03   -.96583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41866e-11
Minuit parameter uncertainties:
  1  2.39601e-06
  2  2.73807e-05
  3  1.07638
  4  3.99777e-05
  5  23.0232
  6  35.0352
  7  9.04004
  8  0.000110218
  9  3.91956e-06
  10  0.303917
  11  9.03358
  12  3.08145
  13  33.5088
  14  25.2566
  15  1.48426e-05
  16  0.546742
  17  6.42584e-06
  18  7.10935e-07
  19  12.4394
  20  29.846
  21  0.296944
  22  0.153627
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.262e+01  9.034e+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.874e-01  1.536e-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:  9.365e-01  2.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.85
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 2.32e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 1.71e-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) = 12507.5928537
delta logL = 0.0124467692931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12507.5905213
delta logL = 0.0147791730305

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.961       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.1414       1.0000          .0000       10.000    
     3 'Normalizat'    .93054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88790       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   12507.59     FROM MIGRAD    STATUS=FAILED       106 CALLS      284 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.957        11.047        .57913E-03   -.85196E-05
   2  Index1        1.1418        1.3302        .29276E-01    .59933E-03
   3  Normalizat    .93066        .28532        .51591E-03    .13222E-06
   4  Prefactor     .88780        .15299        .28491E-03   -.79806E-07
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12507.59     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      356 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.957        11.047        .12123E-03   -1.5016    
   2  Index1        1.1418        1.3302        .21631E-02   -.88141    
   3  Normalizat    .93066        .28532        .42469E-03   -.95391    
   4  Prefactor     .88780        .15299        .24119E-03   -.96569    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12507.59     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      383 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.957        9.9549        .23165E-04   -.94226E-05
   2  Index1        1.1418        1.2043        .58552E-02    .23267E-04
   3  Normalizat    .93066        .28317        .20636E-04    .13222E-06
   4  Prefactor     .88780        .15293        .11396E-04   -.79806E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9569
  Index1     = 1.14183
  Normalizat = 0.930659
  Prefactor  = 0.887805
 **********
 **   18 **HESSE 
 **********

 FCN=   12507.59     FROM HESSE     STATUS=OK            25 CALLS      408 TOTAL
                     EDM=   .68E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.957        9.8147        .46331E-05   -1.5016    
   2  Index1        1.1418        1.1870        .11710E-02   -.88141    
   3  Normalizat    .93066        .28285        .20636E-04   -.95391    
   4  Prefactor     .88780        .15290        .11396E-04   -.96569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78015e-14
Minuit parameter uncertainties:
  1  9.81606
  2  1.2164
  3  0.283308
  4  0.152975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366556': 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) = 12507.5905209
delta logL = 0.0147795185767

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.196e+01  9.816e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.142e+00  1.216e+00  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.878e-01  1.530e-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:  9.307e-01  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.85
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.14 +/- 1.22
Photon Flux (Free Index): 4.13e-08 +/- 6.70e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.68e-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/366556/cmap_HighResolution_440467201_440726401_4FGL_J2234.7+0943_daily_bin776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='2.41e-05', photon_flux_error='2.32e-08', dlogl='1.48e-02', energy_flux='2.39e-05', photon_flux2='4.13e-08', job_status='DONE', time_completed='2021-09-28 15:21:43.769766', photon_index_error2='1.22', photon_index2='1.14', ts='4.85', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='0.94', time_epoch_completed='1632867703.77', return_code='0', job_id='366556', GAL2='0.89', EG2='0.93', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='6.70e-08', ts2='4.85', photon_index='0.94' WHERE bin_id='776' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:21:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 366556: <4FGL_J2234.7+0943_daily_bin776> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin776> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:05:32 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:05:33 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:05:33 2021
Terminated at Tue Sep 28 15:21:44 2021
Results reported at Tue Sep 28 15:21:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin776 338.691 9.732 440467201 440726401 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 :                                   959.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             382.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            972 sec.

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

