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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1471
RA = 338.691, Dec = 9.732
tmin = 620611201, tmax = 620870401
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='371449', job_status='RUN', time_executed='2021-09-28 15:18:49.089180', time_epoch_executed='1632867529.09' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371449

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371449/ft1_4FGL_J2234.7+0943_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371449/ft2_4FGL_J2234.7+0943_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371449/ft1_4FGL_J2234.7+0943_daily_bin1471.fits outfile=/scratch/kocevski/371449/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1471.fits ra=338.691 dec=9.732 rad=12.0 tmin=620611201.0 tmax=620870401.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.78
user 3.48
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371449/ft1_filtered_4FGL_J2234.7+0943_daily_bin1471.fits" evtable="EVENTS" scfile=/scratch/kocevski/371449/ft2_4FGL_J2234.7+0943_daily_bin1471.fits sctable="SC_DATA" outfile=/scratch/kocevski/371449/ltcube_620611201_620870401_4FGL_J2234.7+0943_daily_bin1471.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/371449/ft2_4FGL_J2234.7+0943_daily_bin1471.fits
.....................!
real 13.27
user 12.88
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371449/ft1_filtered_4FGL_J2234.7+0943_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/371449/ft2_4FGL_J2234.7+0943_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/371449/ltcube_620611201_620870401_4FGL_J2234.7+0943_daily_bin1471.fits outfile=/scratch/kocevski/371449/expmap_620611201_620870401_4FGL_J2234.7+0943_daily_bin1471.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/371449/ltcube_620611201_620870401_4FGL_J2234.7+0943_daily_bin1471.fits
.....................!
real 191.50
user 185.78
sys 5.25

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/371449/ft1_filtered_4FGL_J2234.7+0943_daily_bin1471.fits scfile=/scratch/kocevski/371449/ft2_4FGL_J2234.7+0943_daily_bin1471.fits outfile=/scratch/kocevski/371449/cmap_620611201_620870401_4FGL_J2234.7+0943_daily_bin1471.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371449/ft1_filtered_4FGL_J2234.7+0943_daily_bin1471.fits scfile=/scratch/kocevski/371449/ft2_4FGL_J2234.7+0943_daily_bin1471.fits outfile=/scratch/kocevski/371449/cmap_HighResolution_620611201_620870401_4FGL_J2234.7+0943_daily_bin1471.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371449/ft1_filtered_4FGL_J2234.7+0943_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/371449/ft2_4FGL_J2234.7+0943_daily_bin1471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371449/Model_4FGL_J2234.7+0943_daily_bin1471.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/371449/ft1_filtered_4FGL_J2234.7+0943_daily_bin1471.fits.....................!
real 55.84
user 54.42
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46326       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5325       1.0000         .10000E-03   10000.    
     3 'norm      '    .10379E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    72.269       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5633       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.207       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2361       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .52920       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1440       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.282       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0538       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32262       1.0000         .10000E-03   10000.    
    17 'Prefactor '    100.19       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28537E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.089       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11360E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72665       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0652       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=   5210.770     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2458 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46336        2.1583        .20689E-05    .54861E-03
   2  norm          6.5293        22.162       -.51449E-06   -.36340E-04
   3  norm          .10000E-03    .56110        .30895E-06** at limit **
   4  Prefactor     72.281        38.143        .28142E-06    .39511E-05
   5  Prefactor     .10000E-03    15.254        .23159E-06** at limit **
   6  Prefactor     .10000E-03    51.859        .96924E-06** at limit **
   7  norm          1.5643        3.7618        .84396E-06    .15734E-03
   8  Prefactor     13.207        18.121        .15951E-06   -.29303E-04
   9  Prefactor     8.2299        18.792        .59089E-07   -.27186E-04
  10  Prefactor     .52923        .28624        .34207E-07   -.19449E-05
  11  Prefactor     .10000E-03    6.5339        .39178E-07** at limit **
  12  norm          1.1441        1.1380        .20393E-07   -.24508E-04
  13  Prefactor     23.283        31.881        .27108E-06    .59288E-05
  14  Prefactor     5.0538        9.7729        .27107E-06    .22643E-04
  15  Prefactor     .10000E-03    15.451        .15415E-06** at limit **
  16  Prefactor     .32256        .16915       -.47198E-08    .97902E-03
  17  Prefactor     100.11        67.711       -.33792E-06   -.11345E-03
  18  Prefactor     .10038E-03    12.995       -.24970E-05** at limit **
  19  Prefactor     11.083        21.596       -.13331E-06    .38738E-04
  20  Prefactor     .10000E-03    70.414       -.11459E-05** at limit **
  21  Normalizat    .72717        .29952        .20813E-05   -.71555E-04
  22  Prefactor     1.0649        .15436       -.21538E-05   -.13590E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.463357
  norm       = 6.52928
  norm       = 0.0001
  Prefactor  = 72.2808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56427
  Prefactor  = 13.2069
  Prefactor  = 8.22994
  Prefactor  = 0.529225
  Prefactor  = 0.0001
  norm       = 1.14411
  Prefactor  = 23.2827
  Prefactor  = 5.05384
  Prefactor  = 0.0001
  Prefactor  = 0.322563
  Prefactor  = 100.114
  Prefactor  = 0.000100383
  Prefactor  = 11.0825
  Prefactor  = 0.0001
  Normalizat = 0.727167
  Prefactor  = 1.06488
 **********
 **   18 **HESSE 
 **********

 FCN=   5210.770     FROM HESSE     STATUS=OK           350 CALLS     2808 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46336        2.2319        .21032E-03   -1.5572    
   2  norm          6.5293        22.093        .15702E-03   -1.5197    
   3  norm          .10000E-03    1.0163        .10281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     72.281        38.102        .47225E-04   -1.4006    
   5  Prefactor     .10000E-03    15.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5643        3.7216        .20844E-03   -1.5458    
   8  Prefactor     13.207        18.081        .11022E-03   -1.4981    
   9  Prefactor     8.2299        18.767        .13970E-03   -1.5134    
  10  Prefactor     .52923        .28108        .25648E-04   -1.5562    
  11  Prefactor     .10000E-03    6.5582        .18017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1441        1.1382        .43397E-04   -1.5494    
  13  Prefactor     23.283        31.860        .83015E-04   -1.4743    
  14  Prefactor     5.0538        9.7609        .17886E-03   -1.5258    
  15  Prefactor     .10000E-03    15.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .32256        .16604        .19763E-04   -1.5594    
  17  Prefactor     100.11        67.822        .20082E-03   -1.3703    
  18  Prefactor     .10038E-03    52.994        .40305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.083        21.415        .12031E-03   -1.5042    
  20  Prefactor     .10000E-03    70.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .72717        .32344        .40263E-03   -1.0283    
  22  Prefactor     1.0649        .16858        .18473E-03   -.90597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38336e-09
Minuit parameter uncertainties:
  1  2.0338
  2  22.1208
  3  8.12335e-06
  4  38.1151
  5  2.06766e-05
  6  0.000197326
  7  3.72219
  8  18.089
  9  18.7804
  10  0.281085
  11  8.04426e-06
  12  1.13821
  13  31.883
  14  9.76401
  15  3.77231e-05
  16  0.166036
  17  67.8745
  18  0.00901498
  19  21.4299
  20  0.000146246
  21  0.324291
  22  0.168665
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  8.044e-06  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:  1.065e+00  1.687e-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.272e-01  3.243e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/371449/likelihoodResults_620611201_620870401_4FGL_J2234.7+0943_daily_bin1471.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) = 5210.77052978
delta logL = -0.000725793679521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5210.76980399
delta logL = 4.95310814586e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    .93074       1.0000          .0000       10.000    
     3 'Normalizat'    .72714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0649       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5210.770     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      245 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1213.9        .18060E-02** at limit **
   2  Index1        .63013        9.6597        .18158       -.13962E-07
   3  Normalizat    .72717        .13154        .40261E-03    .31795E-04
   4  Prefactor     1.0649        .72429E-01    .18473E-03    .10811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index1     = 0.63013
  Normalizat = 0.727168
  Prefactor  = 1.06488
 **********
 **   18 **HESSE 
 **********

 FCN=   5210.770     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8150        .36119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        .63013        6.2587        .72633E-02   -1.0633    
   3  Normalizat    .72717        .30182        .16105E-04   -1.0283    
   4  Prefactor     1.0649        .16641        .36945E-04   -.90597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73225e-11
Minuit parameter uncertainties:
  1  9.00164e-06
  2  410.555
  3  0.302514
  4  0.166487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371449': 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) = 5210.7698037
delta logL = 2.85569512926e-07

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  9.002e-06  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  6.301e-01  4.106e+02  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:  1.065e+00  1.665e-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.272e-01  3.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.691 9.732

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/371449/cmap_HighResolution_620611201_620870401_4FGL_J2234.7+0943_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-05', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-28 15:28:21.967135', job_id='371449', GAL2='1.06', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632868101.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='0.94' WHERE bin_id='1471' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:28:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 371449: <4FGL_J2234.7+0943_daily_bin1471> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1471 338.691 9.732 620611201 620870401 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 :                                   567.61 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            727 sec.

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

