/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 125 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 = 7485
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin117
RA = 335.71, Dec = 12.1568
tmin = 269654401, tmax = 269913601
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='276571', job_status='RUN', time_executed='2021-09-28 10:08:21.605462', time_epoch_executed='1632848901.61' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276571/ft1_4FGL_J2222.8+1209_daily_bin117.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276571/ft2_4FGL_J2222.8+1209_daily_bin117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276571/ft1_4FGL_J2222.8+1209_daily_bin117.fits outfile=/scratch/kocevski/276571/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin117.fits ra=335.71 dec=12.1568 rad=12.0 tmin=269654401.0 tmax=269913601.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 2.63
user 2.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276571/ft2_4FGL_J2222.8+1209_daily_bin117.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/276571/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin117.fits evtable="EVENTS" outfile="/scratch/kocevski/276571/ft1_filtered_4FGL_J2222.8+1209_daily_bin117.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.41
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276571/ft1_filtered_4FGL_J2222.8+1209_daily_bin117.fits" evtable="EVENTS" scfile=/scratch/kocevski/276571/ft2_4FGL_J2222.8+1209_daily_bin117.fits sctable="SC_DATA" outfile=/scratch/kocevski/276571/ltcube_269654401_269913601_4FGL_J2222.8+1209_daily_bin117.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/276571/ft2_4FGL_J2222.8+1209_daily_bin117.fits
.....................!
real 9.01
user 8.71
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276571/ft1_filtered_4FGL_J2222.8+1209_daily_bin117.fits evtable="EVENTS" scfile=/scratch/kocevski/276571/ft2_4FGL_J2222.8+1209_daily_bin117.fits sctable="SC_DATA" expcube=/scratch/kocevski/276571/ltcube_269654401_269913601_4FGL_J2222.8+1209_daily_bin117.fits outfile=/scratch/kocevski/276571/expmap_269654401_269913601_4FGL_J2222.8+1209_daily_bin117.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/276571/ltcube_269654401_269913601_4FGL_J2222.8+1209_daily_bin117.fits
.....................!
real 139.98
user 136.24
sys 3.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/276571/ft1_filtered_4FGL_J2222.8+1209_daily_bin117.fits scfile=/scratch/kocevski/276571/ft2_4FGL_J2222.8+1209_daily_bin117.fits outfile=/scratch/kocevski/276571/cmap_269654401_269913601_4FGL_J2222.8+1209_daily_bin117.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276571/ft1_filtered_4FGL_J2222.8+1209_daily_bin117.fits scfile=/scratch/kocevski/276571/ft2_4FGL_J2222.8+1209_daily_bin117.fits outfile=/scratch/kocevski/276571/cmap_HighResolution_269654401_269913601_4FGL_J2222.8+1209_daily_bin117.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.45
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7620       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.386       1.0000         .10000E-03   10000.    
     4 'norm      '    6.2397       1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.894       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0517       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.191       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7072       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3430       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0981       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13113       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0775       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5739       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.233       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.928       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0480       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9104       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.2086       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94081       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82440       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=   7335.429     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3148 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7622        1.8446       -.24478E-07   -.17561E-03
   2  Prefactor     .10000E-03    38.642        .12972E-05** at limit **
   3  Prefactor     26.376        41.606       -.16176E-04    .24276E-04
   4  norm          6.2392        2.6032       -.16104E-06    .78995E-04
   5  norm          .10000E-03    6.9073       -.42119E-05** at limit **
   6  Prefactor     46.891        35.370       -.32858E-05    .99656E-05
   7  Prefactor     .10000E-03    15.498        .31692E-06** at limit **
   8  norm          4.0516        1.2598       -.11717E-06    .62836E-04
   9  Prefactor     29.189        22.957        .80483E-06    .12686E-03
  10  Prefactor     5.6891        24.292       -.34477E-04   -.76883E-05
  11  Prefactor     6.3359        29.359       -.16066E-04    .30724E-05
  12  norm          .10000E-03    2.2784       -.75621E-07** at limit **
  13  Prefactor     .10000E-03    6.2702        .71285E-05** at limit **
  14  Prefactor     9.0963        11.941       -.19399E-05   -.40049E-04
  15  Prefactor     .13117        .16898       -.26726E-06   -.62038E-02
  16  Prefactor     6.0774        5.8634        .72348E-06    .14348E-02
  17  norm          2.5739        1.6384       -.97647E-07    .10538E-03
  18  Prefactor     12.229        23.469       -.58901E-05   -.17954E-05
  19  Prefactor     .10000E-03    4.8168        .39659E-06** at limit **
  20  Prefactor     14.928        15.892       -.32659E-06    .28479E-04
  21  Prefactor     1.0479        .20680       -.26399E-07    .16599E-02
  22  Prefactor     2.9100        28.853       -.22941E-05   -.56567E-04
  23  Prefactor     .10000E-03    5.5639       -.37523E-05** at limit **
  24  Prefactor     3.2055        12.720       -.22232E-05   -.10395E-03
  25  Normalizat    .94106        .22422        .70704E-05    .39057E-04
  26  Prefactor     .82428        .11137        .31415E-06    .39364E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.7622
  Prefactor  = 0.0001
  Prefactor  = 26.3756
  norm       = 6.23921
  norm       = 0.0001
  Prefactor  = 46.8913
  Prefactor  = 0.0001
  norm       = 4.05164
  Prefactor  = 29.1886
  Prefactor  = 5.68913
  Prefactor  = 6.33594
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.09627
  Prefactor  = 0.131173
  Prefactor  = 6.07743
  norm       = 2.57393
  Prefactor  = 12.2294
  Prefactor  = 0.0001
  Prefactor  = 14.928
  Prefactor  = 1.04792
  Prefactor  = 2.91
  Prefactor  = 0.0001
  Prefactor  = 3.20548
  Normalizat = 0.941064
  Prefactor  = 0.824277
 **********
 **   18 **HESSE 
 **********

 FCN=   7335.429     FROM HESSE     STATUS=OK           468 CALLS     3616 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7622        1.8307        .11167E-03   -1.5442    
   2  Prefactor     .10000E-03    38.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.376        41.509        .77987E-04   -1.4680    
   4  norm          6.2392        2.6053        .84776E-04   -1.5208    
   5  norm          .10000E-03    6.9120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.891        35.180        .58553E-04   -1.4337    
   7  Prefactor     .10000E-03    15.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0516        1.2591        .50988E-04   -1.5305    
   9  Prefactor     29.189        22.935        .74154E-04   -1.4627    
  10  Prefactor     5.6891        24.263        .16814E-03   -1.5231    
  11  Prefactor     6.3359        29.322        .15937E-03   -1.5204    
  12  norm          .10000E-03    2.3140        .12622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0963        11.980        .13287E-03   -1.5105    
  15  Prefactor     .13117        .15947        .36933E-03   -1.5636    
  16  Prefactor     6.0774        5.8964        .81430E-03   -1.5215    
  17  norm          2.5739        1.6403        .85024E-04   -1.5387    
  18  Prefactor     12.229        23.509        .11453E-03   -1.5008    
  19  Prefactor     .10000E-03    4.8337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.928        15.903        .10367E-03   -1.4935    
  21  Prefactor     1.0479        .20797        .16072E-04   -1.5503    
  22  Prefactor     2.9100        28.888        .23816E-03   -1.5367    
  23  Prefactor     .10000E-03    5.6250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.2055        12.724        .22618E-03   -1.5350    
  25  Normalizat    .94106        .26207        .33710E-03   -.95032    
  26  Prefactor     .82428        .13192        .19106E-03   -.98840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4354e-09
Minuit parameter uncertainties:
  1  1.83073
  2  1.10983e-05
  3  41.5545
  4  2.60535
  5  2.36656e-05
  6  35.1959
  7  8.78414e-06
  8  1.25907
  9  22.9422
  10  23.5136
  11  27.2823
  12  1.03544e-05
  13  1.65543e-05
  14  11.9831
  15  0.159475
  16  5.89695
  17  1.64033
  18  23.5266
  19  1.54569e-05
  20  15.9077
  21  0.207966
  22  18.3485
  23  1.61418e-05
  24  12.7348
  25  0.262428
  26  0.131969
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.655e-05  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:  8.243e-01  1.320e-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:  9.411e-01  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 7.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276571/likelihoodResults_269654401_269913601_4FGL_J2222.8+1209_daily_bin117.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) = 7335.42964724
delta logL = -0.000759565738917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7335.42888993
delta logL = -2.25800431508e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12209E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3747       1.0000          .0000       10.000    
     3 'Normalizat'    .94076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82444       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=   7335.429     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10141E-03    42.654        .18142E-02** at limit **
   2  Index         2.3179        8.0156        .50000        .32013E-04
   3  Normalizat    .94107        .13019E-01    .33709E-03   -.26643E-05
   4  Prefactor     .82428        .69983E-02    .19107E-03   -.32131E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101413
  Index      = 2.3179
  Normalizat = 0.941067
  Prefactor  = 0.824275
 **********
 **   18 **HESSE 
 **********

 FCN=   7335.429     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10141E-03    185.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3179        6.0932        .50000       -.56619    
   3  Normalizat    .94107        .27869E-01    .13484E-04   -.95032    
   4  Prefactor     .82428        .14981E-01    .76426E-05   -.98840    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.19633e-08
Minuit parameter uncertainties:
  1  0.0325193
  2  321.432
  3  0.0278697
  4  0.0149807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276571': 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) = 7335.428887
delta logL = 6.72156602377e-07

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.014e-04  3.252e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.318e+00  3.214e+02  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:  8.243e-01  1.498e-02  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:  9.411e-01  2.787e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.710 12.157

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/276571/cmap_HighResolution_269654401_269913601_4FGL_J2222.8+1209_daily_bin117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2021-09-28 10:17:55.939219', job_id='276571', GAL2='0.82', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632849475.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='6.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='117' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:17:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 276571: <4FGL_J2222.8+1209_daily_bin117> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin117> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:06:07 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:06:08 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:06:08 2021
Terminated at Tue Sep 28 10:17:56 2021
Results reported at Tue Sep 28 10:17:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin117 335.71 12.1568 269654401 269913601 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 :                                   573.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            709 sec.

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

