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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin1169
RA = 335.71, Dec = 12.1568
tmin = 542332801, tmax = 542592001
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='282109', job_status='RUN', time_executed='2021-09-28 10:25:41.914176', time_epoch_executed='1632849941.91' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='1169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282109

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282109/ft1_4FGL_J2222.8+1209_daily_bin1169.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282109/ft2_4FGL_J2222.8+1209_daily_bin1169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282109/ft1_4FGL_J2222.8+1209_daily_bin1169.fits outfile=/scratch/kocevski/282109/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1169.fits ra=335.71 dec=12.1568 rad=12.0 tmin=542332801.0 tmax=542592001.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 4.13
user 3.91
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/282109/ft2_4FGL_J2222.8+1209_daily_bin1169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282109/ft2_4FGL_J2222.8+1209_daily_bin1169.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/282109/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1169.fits evtable="EVENTS" outfile="/scratch/kocevski/282109/ft1_filtered_4FGL_J2222.8+1209_daily_bin1169.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282109/ft1_filtered_4FGL_J2222.8+1209_daily_bin1169.fits" evtable="EVENTS" scfile=/scratch/kocevski/282109/ft2_4FGL_J2222.8+1209_daily_bin1169.fits sctable="SC_DATA" outfile=/scratch/kocevski/282109/ltcube_542332801_542592001_4FGL_J2222.8+1209_daily_bin1169.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/282109/ft2_4FGL_J2222.8+1209_daily_bin1169.fits
.....................!
real 11.80
user 11.45
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282109/ft1_filtered_4FGL_J2222.8+1209_daily_bin1169.fits evtable="EVENTS" scfile=/scratch/kocevski/282109/ft2_4FGL_J2222.8+1209_daily_bin1169.fits sctable="SC_DATA" expcube=/scratch/kocevski/282109/ltcube_542332801_542592001_4FGL_J2222.8+1209_daily_bin1169.fits outfile=/scratch/kocevski/282109/expmap_542332801_542592001_4FGL_J2222.8+1209_daily_bin1169.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/282109/ltcube_542332801_542592001_4FGL_J2222.8+1209_daily_bin1169.fits
.....................!
real 189.24
user 184.95
sys 3.90

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

Setting source of interest to:
4FGL J2222.8+1209 @ 335.71 12.1568

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/282109/ft1_filtered_4FGL_J2222.8+1209_daily_bin1169.fits scfile=/scratch/kocevski/282109/ft2_4FGL_J2222.8+1209_daily_bin1169.fits outfile=/scratch/kocevski/282109/cmap_542332801_542592001_4FGL_J2222.8+1209_daily_bin1169.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=335.71 yref=12.1568 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282109/ft1_filtered_4FGL_J2222.8+1209_daily_bin1169.fits scfile=/scratch/kocevski/282109/ft2_4FGL_J2222.8+1209_daily_bin1169.fits outfile=/scratch/kocevski/282109/cmap_HighResolution_542332801_542592001_4FGL_J2222.8+1209_daily_bin1169.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=335.71 yref=12.1568 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/282109/ft1_filtered_4FGL_J2222.8+1209_daily_bin1169.fits evtable="EVENTS" scfile=/scratch/kocevski/282109/ft2_4FGL_J2222.8+1209_daily_bin1169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/282109/Model_4FGL_J2222.8+1209_daily_bin1169.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/282109/ft1_filtered_4FGL_J2222.8+1209_daily_bin1169.fits.....................!
real 77.18
user 75.74
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/282109/ft1_filtered_4FGL_J2222.8+1209_daily_bin1169.fits', '/scratch/kocevski/282109/ft2_4FGL_J2222.8+1209_daily_bin1169.fits', expMap='/scratch/kocevski/282109/expmap_542332801_542592001_4FGL_J2222.8+1209_daily_bin1169.fits', expCube='/scratch/kocevski/282109/ltcube_542332801_542592001_4FGL_J2222.8+1209_daily_bin1169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/282109/Model_4FGL_J2222.8+1209_daily_bin1169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2222.8+1209'

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.996e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/282109/ft1_filtered_4FGL_J2222.8+1209_daily_bin1169.fits
Spacecraft file(s): /scratch/kocevski/282109/ft2_4FGL_J2222.8+1209_daily_bin1169.fits
Exposure map: /scratch/kocevski/282109/expmap_542332801_542592001_4FGL_J2222.8+1209_daily_bin1169.fits
Exposure cube: /scratch/kocevski/282109/ltcube_542332801_542592001_4FGL_J2222.8+1209_daily_bin1169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/282109/Model_4FGL_J2222.8+1209_daily_bin1169.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) = 7975.18040513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23107       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    103.16       1.0000         .10000E-03   10000.    
     4 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    57.993       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19746E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.290       1.0000         .10000E-03   10000.    
     8 'norm      '    .37200       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.925       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.182       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0069       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7862       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9120       1.0000         .10000E-03   10000.    
    22 'Prefactor '    64.006       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .34366       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2569       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7975.176     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     2653 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20927        5.0893        .53854E-06   -.23419E-03
   2  Prefactor     .10002E-03    19.326       -.31192E-04** at limit **
   3  Prefactor     103.16        1.0006        .12850E-07   -.55031E-04
   4  norm          .10000E-03    1.2291       -.10895E-06** at limit **
   5  norm          57.995        1.0884        .24108E-06   -.77466E-03
   6  Prefactor     .10006E-03    67.617       -.19546E-04** at limit **
   7  Prefactor     67.281        3.0364       -.16024E-05    .73356E-02
   8  norm          .37149        .93346       -.54450E-07   -.29941E-04
   9  Prefactor     .10002E-03    9.0448        .58665E-06** at limit **
  10  Prefactor     6.6596        1.0037        .45203E-07   -.91390E-05
  11  Prefactor     .10000E-03    23.608        .34928E-04** at limit **
  12  norm          .10000E-03    1.9706       -.43737E-07** at limit **
  13  Prefactor     24.927        1.0024       -.32500E-07    .10576E-03
  14  Prefactor     20.184        1.0020       -.29481E-08   -.20151E-04
  15  Prefactor     1.0069        .25255        .29888E-07    .31685E-02
  16  Prefactor     5.7862        1.0071       -.24421E-07    .28395E-04
  17  norm          .10000E-03    .70770        .14573E-06** at limit **
  18  Prefactor     .10000E-03    12.513        .64884E-05** at limit **
  19  Prefactor     .10000E-03    2.9542       -.16639E-06** at limit **
  20  Prefactor     .10000E-03    7.9618        .28122E-05** at limit **
  21  Prefactor     1.9121        .25771        .38828E-07    .51388E-02
  22  Prefactor     64.009        1.3913        .55649E-06   -.24587E-02
  23  Prefactor     .10000E-03    4.7118       -.26812E-07** at limit **
  24  Prefactor     .10000E-03    8.6181       -.72980E-05** at limit **
  25  Normalizat    .34344        .26798       -.10610E-05    .39614E-04
  26  Prefactor     1.2570        .14522        .22642E-06    .13123E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.209268
  Prefactor  = 0.000100017
  Prefactor  = 103.159
  norm       = 0.0001
  norm       = 57.9949
  Prefactor  = 0.000100055
  Prefactor  = 67.2811
  norm       = 0.371494
  Prefactor  = 0.000100016
  Prefactor  = 6.65961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.9268
  Prefactor  = 20.1836
  Prefactor  = 1.00689
  Prefactor  = 5.78623
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.91206
  Prefactor  = 64.0087
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.343436
  Prefactor  = 1.25698
 **********
 **   18 **HESSE 
 **********

 FCN=   7975.176     FROM HESSE     STATUS=OK           514 CALLS     3167 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20927        1.0808        .51978E-01   -1.5616    
   2  Prefactor     .10002E-03    23.281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     103.16        83.540        .98970E-03   -1.3673    
   4  norm          .10000E-03    1.2045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          57.995        29.471        .13170E-02   -1.4183    
   6  Prefactor     .10006E-03    66.989        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     67.281        49.706        .12232E-02   -1.4066    
   8  norm          .37149        .97655        .10737E-01   -1.5586    
   9  Prefactor     .10002E-03    25.357        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.6596        22.260        .38875E-02   -1.5192    
  11  Prefactor     .10000E-03    28.425        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9636        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.927        15.961        .20059E-02   -1.4709    
  14  Prefactor     20.184        13.633        .22289E-02   -1.4809    
  15  Prefactor     1.0069        .26186        .48440E-02   -1.5507    
  16  Prefactor     5.7862        6.2616        .41742E-02   -1.5227    
  17  norm          .10000E-03    .69416        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.9514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.9591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9121        .26451        .35593E-02   -1.5431    
  22  Prefactor     64.009        57.904        .12540E-02   -1.4106    
  23  Prefactor     .10000E-03    4.6723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.5859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .34344        .35641        .13783       -1.2033    
  26  Prefactor     1.2570        .17281        .33406E-01   -.84595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33869e-07
Minuit parameter uncertainties:
  1  0.950958
  2  0.00126362
  3  83.6357
  4  8.48108e-06
  5  29.4788
  6  0.00385368
  7  49.7362
  8  0.976589
  9  0.00127094
  10  22.2876
  11  0.000121868
  12  2.16016e-06
  13  15.9636
  14  13.6354
  15  0.261856
  16  6.26233
  17  6.72386e-06
  18  0.00010077
  19  2.19031e-07
  20  1.66274e-05
  21  0.264509
  22  57.9551
  23  2.69998e-05
  24  0.000157995
  25  0.358791
  26  0.172886
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.493e+01  1.596e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.257e+00  1.729e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  3.434e-01  3.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.95
Ra Dec: 335.710 12.157
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 8.32e-08 +/- 5.33e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.73e-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) = 7975.07052267
delta logL = 0.105189038522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7975.06680073
delta logL = 0.108910980808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.944       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7198       1.0000          .0000       10.000    
     3 'Normalizat'    .30947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2685       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7975.067     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      269 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.928        193.18        .23637E-02    .82880E-03
   2  Index         2.7212        3.1295        .11032        .18874E-03
   3  Normalizat    .30926        .13722        .14510        .88352E-04
   4  Prefactor     1.2689        .49087E-01    .33182E-01   -.83130E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.928
  Index      = 2.72118
  Normalizat = 0.309261
  Prefactor  = 1.2689
 **********
 **   18 **HESSE 
 **********

 FCN=   7975.067     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.928        24.846        .47275E-03   -1.4861    
   2  Index         2.7212        .90027        .56943E-02   -.47323    
   3  Normalizat    .30926        .28182        .64100E-03   -1.2229    
   4  Prefactor     1.2689        .14926        .18036E-03   -.84236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41542e-08
Minuit parameter uncertainties:
  1  24.8603
  2  0.906526
  3  0.283118
  4  0.149306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282109': 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) = 7975.06678857
delta logL = 0.10892314244

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.793e+01  2.486e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.721e+00  9.065e-01  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.269e+00  1.493e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  3.093e-01  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.24
Ra Dec: 335.710 12.157
Photon Index (Free Index): 2.72 +/- 0.91
Photon Flux (Free Index): 1.09e-07 +/- 8.56e-08
Energy Flux (Free Index): 2.59e-05 +/- 1.55e-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/282109/cmap_HighResolution_542332801_542592001_4FGL_J2222.8+1209_daily_bin1169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.32e-08', energy_flux2='2.59e-05', photon_flux_error='5.33e-08', dlogl='1.09e-01', energy_flux='2.70e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-28 10:37:10.234307', photon_index_error2='0.91', photon_index2='2.72', ts='4.95', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.34', time_epoch_completed='1632850630.23', return_code='0', job_id='282109', GAL2='1.27', EG2='0.31', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='8.56e-08', ts2='5.24', photon_index='2.41' WHERE bin_id='1169' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:37:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 282109: <4FGL_J2222.8+1209_daily_bin1169> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin1169> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:25:29 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:25:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:25:31 2021
Terminated at Tue Sep 28 10:37:10 2021
Results reported at Tue Sep 28 10:37:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin1169 335.71 12.1568 542332801 542592001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2222.8+1209 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   687.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            701 sec.

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

