/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 7 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_J2222.8+1209_daily_bin1542
RA = 335.71, Dec = 12.1568
tmin = 639014401, tmax = 639273601
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='283442', job_status='RUN', time_executed='2021-09-28 10:31:05.244643', time_epoch_executed='1632850265.24' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283442

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283442/ft1_4FGL_J2222.8+1209_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283442/ft2_4FGL_J2222.8+1209_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283442/ft1_4FGL_J2222.8+1209_daily_bin1542.fits outfile=/scratch/kocevski/283442/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1542.fits ra=335.71 dec=12.1568 rad=12.0 tmin=639014401.0 tmax=639273601.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 5.29
user 5.04
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/283442/ft2_4FGL_J2222.8+1209_daily_bin1542.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/283442/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1542.fits evtable="EVENTS" outfile="/scratch/kocevski/283442/ft1_filtered_4FGL_J2222.8+1209_daily_bin1542.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283442/ft1_filtered_4FGL_J2222.8+1209_daily_bin1542.fits" evtable="EVENTS" scfile=/scratch/kocevski/283442/ft2_4FGL_J2222.8+1209_daily_bin1542.fits sctable="SC_DATA" outfile=/scratch/kocevski/283442/ltcube_639014401_639273601_4FGL_J2222.8+1209_daily_bin1542.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/283442/ft2_4FGL_J2222.8+1209_daily_bin1542.fits
.....................!
real 11.46
user 11.05
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283442/ft1_filtered_4FGL_J2222.8+1209_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/283442/ft2_4FGL_J2222.8+1209_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/283442/ltcube_639014401_639273601_4FGL_J2222.8+1209_daily_bin1542.fits outfile=/scratch/kocevski/283442/expmap_639014401_639273601_4FGL_J2222.8+1209_daily_bin1542.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/283442/ltcube_639014401_639273601_4FGL_J2222.8+1209_daily_bin1542.fits
.....................!
real 189.98
user 184.94
sys 4.52

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/283442/ft1_filtered_4FGL_J2222.8+1209_daily_bin1542.fits scfile=/scratch/kocevski/283442/ft2_4FGL_J2222.8+1209_daily_bin1542.fits outfile=/scratch/kocevski/283442/cmap_639014401_639273601_4FGL_J2222.8+1209_daily_bin1542.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283442/ft1_filtered_4FGL_J2222.8+1209_daily_bin1542.fits scfile=/scratch/kocevski/283442/ft2_4FGL_J2222.8+1209_daily_bin1542.fits outfile=/scratch/kocevski/283442/cmap_HighResolution_639014401_639273601_4FGL_J2222.8+1209_daily_bin1542.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/283442/ft1_filtered_4FGL_J2222.8+1209_daily_bin1542.fits', '/scratch/kocevski/283442/ft2_4FGL_J2222.8+1209_daily_bin1542.fits', expMap='/scratch/kocevski/283442/expmap_639014401_639273601_4FGL_J2222.8+1209_daily_bin1542.fits', expCube='/scratch/kocevski/283442/ltcube_639014401_639273601_4FGL_J2222.8+1209_daily_bin1542.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/283442/Model_4FGL_J2222.8+1209_daily_bin1542.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/283442/ft1_filtered_4FGL_J2222.8+1209_daily_bin1542.fits
Spacecraft file(s): /scratch/kocevski/283442/ft2_4FGL_J2222.8+1209_daily_bin1542.fits
Exposure map: /scratch/kocevski/283442/expmap_639014401_639273601_4FGL_J2222.8+1209_daily_bin1542.fits
Exposure cube: /scratch/kocevski/283442/ltcube_639014401_639273601_4FGL_J2222.8+1209_daily_bin1542.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/283442/Model_4FGL_J2222.8+1209_daily_bin1542.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) = 7261.31003405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6172       1.0000         .10000E-03   10000.    
     2 'Prefactor '    66.081       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37536E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8730       1.0000         .10000E-03   10000.    
     5 'norm      '    10.879       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3445       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9901       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.213       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.047       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .63233E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4113       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1005       1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.914       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64833       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .57478       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.797       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1736       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76685       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7261.292     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     3145 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6178        2.3919       -.92142E-06   -.96426E-03
   2  Prefactor     66.067        83.437       -.16293E-04    .35585E-04
   3  Prefactor     .10005E-03    135.62       -.81642E-04** at limit **
   4  norm          3.8720        3.1523        .26306E-05    .54510E-03
   5  norm          10.847        23.148       -.30792E-04    .20768E-03
   6  Prefactor     .10000E-03    8.6229       -.10393E-06** at limit **
   7  Prefactor     .10000E-03    17.269        .22958E-05** at limit **
   8  norm          .10000E-03    .23944       -.92744E-07** at limit **
   9  Prefactor     .10000E-03    38.466        .17691E-04** at limit **
  10  Prefactor     1.3351        98.648       -.26090E-04   -.69058E-04
  11  Prefactor     7.9819        28.697       -.14122E-04    .13506E-04
  12  norm          .10000E-03    1.0684       -.20307E-07** at limit **
  13  Prefactor     26.207        16.497       -.13584E-05    .21604E-03
  14  Prefactor     14.043        12.765       -.15531E-05    .12845E-03
  15  Prefactor     .63246E-01    .14608       -.18509E-06   -.52463E-02
  16  Prefactor     5.4116        6.0175       -.82551E-06    .59993E-04
  17  norm          2.1002        1.8553       -.18970E-07    .74746E-03
  18  Prefactor     38.910        34.042       -.49994E-05    .63088E-04
  19  Prefactor     .65553        10.271       -.27246E-05    .10335E-03
  20  Prefactor     .10000E-03    8.1751        .15820E-05** at limit **
  21  Prefactor     .57476        .18648       -.35962E-07    .23155E-02
  22  Prefactor     .10000E-03    24.455       -.96227E-05** at limit **
  23  Prefactor     .10000E-03    8.0662       -.14733E-05** at limit **
  24  Prefactor     11.796        14.963       -.19695E-05    .24346E-04
  25  Normalizat    1.1741        .23115        .85917E-05    .33657E-03
  26  Prefactor     .76659        .10999       -.57872E-07    .10157E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61777
  Prefactor  = 66.0667
  Prefactor  = 0.000100054
  norm       = 3.87198
  norm       = 10.8468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.33513
  Prefactor  = 7.9819
  norm       = 0.0001
  Prefactor  = 26.207
  Prefactor  = 14.0434
  Prefactor  = 0.0632457
  Prefactor  = 5.41161
  norm       = 2.10016
  Prefactor  = 38.9097
  Prefactor  = 0.655526
  Prefactor  = 0.0001
  Prefactor  = 0.574764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7965
  Normalizat = 1.1741
  Prefactor  = 0.766595
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.292     FROM HESSE     STATUS=OK           456 CALLS     3601 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6178        2.3808        .15320E-03   -1.5454    
   2  Prefactor     66.067        83.589        .49371E-04   -1.4081    
   3  Prefactor     .10005E-03    132.64        .21292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8720        3.1387        .11515E-03   -1.5314    
   5  norm          10.847        22.954        .12147E-03   -1.5049    
   6  Prefactor     .10000E-03    8.6277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .24650        .81386E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3351        102.89        .37774E-03   -1.5477    
  11  Prefactor     7.9819        28.791        .14185E-03   -1.5143    
  12  norm          .10000E-03    1.0692        .86015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.207        16.075        .78244E-04   -1.4684    
  14  Prefactor     14.043        12.791        .10687E-03   -1.4958    
  15  Prefactor     .63246E-01    .13780        .43630E-04   -1.5658    
  16  Prefactor     5.4116        5.9816        .17275E-03   -1.5243    
  17  norm          2.1002        1.9102        .10090E-03   -1.5418    
  18  Prefactor     38.910        34.086        .64252E-04   -1.4460    
  19  Prefactor     .65553        98.135        .49162E-02   -1.5546    
  20  Prefactor     .10000E-03    8.1797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .57476        .18595        .19512E-04   -1.5556    
  22  Prefactor     .10000E-03    24.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.2272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.796        14.976        .11663E-03   -1.5021    
  25  Normalizat    1.1741        .27755        .31331E-03   -.87407    
  26  Prefactor     .76659        .13262        .19475E-03   -1.0097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76898e-09
Minuit parameter uncertainties:
  1  2.38091
  2  83.7383
  3  0.00537946
  4  3.13881
  5  22.9722
  6  1.19657e-05
  7  2.20744e-05
  8  2.47298e-06
  9  0.00038615
  10  23.482
  11  28.8408
  12  2.26591e-06
  13  16.0775
  14  12.793
  15  0.137801
  16  5.98227
  17  1.91021
  18  34.1031
  19  16.0669
  20  7.58508e-06
  21  0.185953
  22  5.67823e-05
  23  3.92032e-05
  24  14.9804
  25  0.277899
  26  0.13268
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.621e+01  1.608e+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:  7.666e-01  1.327e-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:  1.174e+00  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 335.710 12.157
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 8.75e-08 +/- 5.36e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 1.74e-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) = 7261.27955659
delta logL = 0.0128620875003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7261.26520255
delta logL = 0.0272161302719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.779       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5312       1.0000          .0000       10.000    
     3 'Normalizat'    1.1626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77075       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7261.265     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      240 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.771        22.410        .83926E-04   -.52965E-04
   2  Index         2.5314        .59583        .50141E-02   -.54491E-04
   3  Normalizat    1.1627        .25947        .31461E-03   -.11991E-02
   4  Prefactor     .77068        .13171        .19430E-03   -.24331E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7709
  Index      = 2.53142
  Normalizat = 1.16271
  Prefactor  = 0.770683
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.265     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.771        20.541        .33570E-05   -1.4753    
   2  Index         2.5314        .54569        .20056E-03   -.51636    
   3  Normalizat    1.1627        .25899        .62922E-04   -.87763    
   4  Prefactor     .77068        .13154        .38859E-04   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4502e-09
Minuit parameter uncertainties:
  1  20.547
  2  0.547131
  3  0.259278
  4  0.131593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283442': 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) = 7261.26520225
delta logL = 0.0272164322714

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.277e+01  2.055e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.531e+00  5.471e-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:  7.707e-01  1.316e-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:  1.163e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 335.710 12.157
Photon Index (Free Index): 2.53 +/- 0.55
Photon Flux (Free Index): 9.60e-08 +/- 6.57e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.69e-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/283442/cmap_HighResolution_639014401_639273601_4FGL_J2222.8+1209_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.75e-08', energy_flux2='2.70e-05', photon_flux_error='5.36e-08', dlogl='2.72e-02', energy_flux='2.84e-05', photon_flux2='9.60e-08', job_status='DONE', time_completed='2021-09-28 10:42:08.293188', photon_index_error2='0.55', photon_index2='2.53', ts='4.51', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='1.17', time_epoch_completed='1632850928.29', return_code='0', job_id='283442', GAL2='0.77', EG2='1.16', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='6.57e-08', ts2='4.55', photon_index='2.41' WHERE bin_id='1542' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:42:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 283442: <4FGL_J2222.8+1209_daily_bin1542> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin1542> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 10:30:47 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:30:49 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:30:49 2021
Terminated at Tue Sep 28 10:42:09 2021
Results reported at Tue Sep 28 10:42:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin1542 335.71 12.1568 639014401 639273601 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 :                                   660.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             345.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            682 sec.

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

