/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 11 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 = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1343
RA = 338.691, Dec = 9.732
tmin = 587433601, tmax = 587692801
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='371253', job_status='RUN', time_executed='2021-09-28 15:16:24.409466', time_epoch_executed='1632867384.41' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371253

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371253/ft1_4FGL_J2234.7+0943_daily_bin1343.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371253/ft2_4FGL_J2234.7+0943_daily_bin1343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371253/ft1_4FGL_J2234.7+0943_daily_bin1343.fits outfile=/scratch/kocevski/371253/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1343.fits ra=338.691 dec=9.732 rad=12.0 tmin=587433601.0 tmax=587692801.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.52
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371253/ft1_filtered_4FGL_J2234.7+0943_daily_bin1343.fits" evtable="EVENTS" scfile=/scratch/kocevski/371253/ft2_4FGL_J2234.7+0943_daily_bin1343.fits sctable="SC_DATA" outfile=/scratch/kocevski/371253/ltcube_587433601_587692801_4FGL_J2234.7+0943_daily_bin1343.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/371253/ft2_4FGL_J2234.7+0943_daily_bin1343.fits
.....................!
real 12.61
user 12.19
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371253/ft1_filtered_4FGL_J2234.7+0943_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/371253/ft2_4FGL_J2234.7+0943_daily_bin1343.fits sctable="SC_DATA" expcube=/scratch/kocevski/371253/ltcube_587433601_587692801_4FGL_J2234.7+0943_daily_bin1343.fits outfile=/scratch/kocevski/371253/expmap_587433601_587692801_4FGL_J2234.7+0943_daily_bin1343.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/371253/ltcube_587433601_587692801_4FGL_J2234.7+0943_daily_bin1343.fits
.....................!
real 190.99
user 185.35
sys 5.30

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/371253/ft1_filtered_4FGL_J2234.7+0943_daily_bin1343.fits scfile=/scratch/kocevski/371253/ft2_4FGL_J2234.7+0943_daily_bin1343.fits outfile=/scratch/kocevski/371253/cmap_587433601_587692801_4FGL_J2234.7+0943_daily_bin1343.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/371253/ft1_filtered_4FGL_J2234.7+0943_daily_bin1343.fits scfile=/scratch/kocevski/371253/ft2_4FGL_J2234.7+0943_daily_bin1343.fits outfile=/scratch/kocevski/371253/cmap_HighResolution_587433601_587692801_4FGL_J2234.7+0943_daily_bin1343.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371253/ft1_filtered_4FGL_J2234.7+0943_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/371253/ft2_4FGL_J2234.7+0943_daily_bin1343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371253/Model_4FGL_J2234.7+0943_daily_bin1343.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/371253/ft1_filtered_4FGL_J2234.7+0943_daily_bin1343.fits.....................!
real 69.47
user 67.99
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0281       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .87865       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.536       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.092       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.455       1.0000         .10000E-03   10000.    
     7 'norm      '    9.0646       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66001       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.132       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .88887       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41088       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2846       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.883       1.0000         .10000E-03   10000.    
    14 'Prefactor '    213.85       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1196       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9887       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12371E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7285       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72440       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89788       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=   6904.586     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2446 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0292        1.7103        .23860E-06    .20750E-03
   2  norm          .10000E-03    5.7550        .25233E-06** at limit **
   3  norm          .87855        .82156       -.36284E-07   -.54130E-03
   4  Prefactor     15.547        22.844       -.32209E-04   -.10825E-04
   5  Prefactor     19.180        25.327        .62430E-06    .29540E-04
   6  Prefactor     31.530        27.984        .14758E-04    .89193E-04
   7  norm          9.0690        4.9687       -.79002E-07    .55241E-04
   8  Prefactor     .71985        9.4602       -.38901E-05    .48093E-03
   9  Prefactor     14.123        12.606        .15922E-05    .19204E-04
  10  Prefactor     .88896        .25613        .36541E-07    .61607E-02
  11  Prefactor     .41107        6.6475       -.16185E-05    .60914E-04
  12  norm          1.2846        1.2680       -.35508E-06   -.42910E-04
  13  Prefactor     23.881        23.112        .17183E-05    .64886E-05
  14  Prefactor     213.87        34.946        .61751E-05    .57638E-04
  15  Prefactor     .10000E-03    17.209        .67782E-05** at limit **
  16  Prefactor     1.1197        .20653       -.68129E-07    .21499E-03
  17  Prefactor     .10000E-03    22.565       -.92234E-05** at limit **
  18  Prefactor     4.9869        6.8479        .16261E-05   -.23886E-03
  19  Prefactor     .10000E-03    14.297       -.24460E-05** at limit **
  20  Prefactor     3.7600        50.636        .38247E-04   -.18679E-04
  21  Normalizat    .72373        .23022       -.21939E-05    .25771E-03
  22  Prefactor     .89817        .12292        .29033E-06    .37523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02919
  norm       = 0.0001
  norm       = 0.878548
  Prefactor  = 15.5468
  Prefactor  = 19.1799
  Prefactor  = 31.5305
  norm       = 9.06899
  Prefactor  = 0.719853
  Prefactor  = 14.1234
  Prefactor  = 0.888963
  Prefactor  = 0.411066
  norm       = 1.28464
  Prefactor  = 23.881
  Prefactor  = 213.873
  Prefactor  = 0.0001
  Prefactor  = 1.1197
  Prefactor  = 0.0001
  Prefactor  = 4.98688
  Prefactor  = 0.0001
  Prefactor  = 3.75999
  Normalizat = 0.723726
  Prefactor  = 0.898174
 **********
 **   18 **HESSE 
 **********

 FCN=   6904.586     FROM HESSE     STATUS=OK           358 CALLS     2804 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0292        1.3924        .13625E-02   -1.5505    
   2  norm          .10000E-03    5.7578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .87855        .78863        .70352E-03   -1.5521    
   4  Prefactor     15.547        22.907        .10161E-03   -1.4919    
   5  Prefactor     19.180        25.329        .91665E-04   -1.4832    
   6  Prefactor     31.530        28.002        .71442E-04   -1.4584    
   7  norm          9.0690        4.9664        .13234E-03   -1.5106    
   8  Prefactor     .71985        44.478        .46567E-02   -1.5538    
   9  Prefactor     14.123        12.604        .10655E-03   -1.4956    
  10  Prefactor     .88896        .25488        .20282E-04   -1.5519    
  11  Prefactor     .41107        31.734        .40494E-02   -1.5580    
  12  norm          1.2846        1.2845        .89872E-04   -1.5481    
  13  Prefactor     23.881        23.139        .81966E-04   -1.4730    
  14  Prefactor     213.87        34.870        .13825E-03   -1.2773    
  15  Prefactor     .10000E-03    17.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1197        .20684        .15217E-04   -1.5496    
  17  Prefactor     .10000E-03    22.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9869        6.8352        .18005E-03   -1.5261    
  19  Prefactor     .10000E-03    14.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7600        50.495        .20912E-03   -1.5320    
  21  Normalizat    .72373        .26601        .37853E-03   -1.0296    
  22  Prefactor     .89817        .14421        .19414E-03   -.96205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96613e-09
Minuit parameter uncertainties:
  1  1.39243
  2  1.79734e-05
  3  0.78864
  4  22.9201
  5  25.3432
  6  28.0141
  7  4.96666
  8  11.3248
  9  12.6066
  10  0.254879
  11  7.22658
  12  1.28457
  13  23.1474
  14  34.8732
  15  1.07384e-05
  16  0.206836
  17  0.000100783
  18  6.83631
  19  6.19684e-06
  20  27.586
  21  0.266489
  22  0.144276
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.111e-01  7.227e+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.982e-01  1.443e-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:  7.237e-01  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 338.691 9.732
Photon Flux Upper Limit: 6.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/371253/likelihoodResults_587433601_587692801_4FGL_J2234.7+0943_daily_bin1343.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6903.09429224
delta logL = 1.49196035034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6903.08556956
delta logL = 1.50068302962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35484       1.0000         .10000E-03   10000.    
     2 'Index1    '    3.3004       1.0000          .0000       10.000    
     3 'Normalizat'    .61255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92609       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=   6903.086     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35284        2.8189        .69586E-02    .15588E-02
   2  Index1        3.3030        1.8282        .10606        .19011E-03
   3  Normalizat    .61244        .51890E-01    .92014E-01    .34604E-04
   4  Prefactor     .92621        .29249E-01    .45337E-01   -.10499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.352843
  Index1     = 3.30295
  Normalizat = 0.612435
  Prefactor  = 0.926205
 **********
 **   18 **HESSE 
 **********

 FCN=   6903.086     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35284        7.1293        .31411E-04   -1.5589    
   2  Index1        3.3030        3.4703        .37324E-02   -.34629    
   3  Normalizat    .61244        .25805        .40772E-03   -1.0746    
   4  Prefactor     .92621        .14213        .19098E-03   -.95231    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.01413e-07
Minuit parameter uncertainties:
  1  3.17206
  2  3.90319
  3  0.258563
  4  0.142182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371253': 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): 102
logL (Free Index) = 6903.08556675
delta logL = 1.50068584466

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.528e-01  3.172e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  3.303e+00  3.903e+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:  9.262e-01  1.422e-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:  6.124e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 338.691 9.732
Photon Index (Free Index): 3.30 +/- 3.90
Photon Flux (Free Index): 1.18e-07 +/- 9.40e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.46e-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/371253/cmap_HighResolution_587433601_587692801_4FGL_J2234.7+0943_daily_bin1343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-05', comment='SUCCESS', energy_flux2='1.90e-05', dlogl='1.50e+00', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-28 15:27:38.076001', photon_index_error2='3.90', photon_index2='3.30', ts='0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='1.46e-05', EG='0.72', time_epoch_completed='1632868058.08', return_code='0', job_id='371253', GAL2='0.93', EG2='0.61', return_code2='102', photon_flux_error2='9.40e-08', ts2='3.16', photon_index='0.94' WHERE bin_id='1343' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:27:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 371253: <4FGL_J2234.7+0943_daily_bin1343> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1343> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:16:00 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:16:02 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:02 2021
Terminated at Tue Sep 28 15:27:38 2021
Results reported at Tue Sep 28 15:27:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1343 338.691 9.732 587433601 587692801 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 :                                   672.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            698 sec.

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

