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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin82
RA = 335.71, Dec = 12.1568
tmin = 260582401, tmax = 260841601
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='276519', job_status='RUN', time_executed='2021-09-28 10:07:48.293821', time_epoch_executed='1632848868.29' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='82'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276519/ft1_4FGL_J2222.8+1209_daily_bin82.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276519/ft2_4FGL_J2222.8+1209_daily_bin82.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276519/ft1_4FGL_J2222.8+1209_daily_bin82.fits outfile=/scratch/kocevski/276519/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin82.fits ra=335.71 dec=12.1568 rad=12.0 tmin=260582401.0 tmax=260841601.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 1.61
user 1.43
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276519/ft1_filtered_4FGL_J2222.8+1209_daily_bin82.fits evtable="EVENTS" scfile=/scratch/kocevski/276519/ft2_4FGL_J2222.8+1209_daily_bin82.fits sctable="SC_DATA" expcube=/scratch/kocevski/276519/ltcube_260582401_260841601_4FGL_J2222.8+1209_daily_bin82.fits outfile=/scratch/kocevski/276519/expmap_260582401_260841601_4FGL_J2222.8+1209_daily_bin82.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/276519/ltcube_260582401_260841601_4FGL_J2222.8+1209_daily_bin82.fits
.....................!
real 194.40
user 189.23
sys 4.76

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/276519/ft1_filtered_4FGL_J2222.8+1209_daily_bin82.fits scfile=/scratch/kocevski/276519/ft2_4FGL_J2222.8+1209_daily_bin82.fits outfile=/scratch/kocevski/276519/cmap_260582401_260841601_4FGL_J2222.8+1209_daily_bin82.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276519/ft1_filtered_4FGL_J2222.8+1209_daily_bin82.fits scfile=/scratch/kocevski/276519/ft2_4FGL_J2222.8+1209_daily_bin82.fits outfile=/scratch/kocevski/276519/cmap_HighResolution_260582401_260841601_4FGL_J2222.8+1209_daily_bin82.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.097       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2017       1.0000         .10000E-03   10000.    
     5 'norm      '    17.538       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3804       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.891       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23604       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9992       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0042       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .76142       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8194       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.293       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15133       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8255       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .67853       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1053       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=   8355.454     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     2163 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.097        3.7491       -.59018E-07   -.49192E-03
   2  Prefactor     .10113E-03    27.553       -.25855E-05** at limit **
   3  Prefactor     .10019E-03    69.509        .33325E-04** at limit **
   4  norm          3.2012        1.9066        .11275E-06   -.66216E-05
   5  norm          17.532        1.0684       -.67047E-07   -.30499E-03
   6  Prefactor     .10169E-03    17.895       -.93947E-06** at limit **
   7  Prefactor     .10004E-03    21.843       -.34164E-05** at limit **
   8  norm          2.3802        1.0095        .26340E-06    .72119E-04
   9  Prefactor     12.902        3.3394        .65349E-06    .36448E-02
  10  Prefactor     .10460E-03    1527.0       -.67938E-04** at limit **
  11  Prefactor     .10000E-03    18.661        .17961E-05** at limit **
  12  norm          3.9986        4.1482       -.75653E-05   -.86468E-03
  13  Prefactor     .10000E-03    3.5441        .21243E-06** at limit **
  14  Prefactor     3.0004        1.1618       -.73907E-07   -.68615E-04
  15  Prefactor     .76135        .20614        .12981E-06   -.24306E-02
  16  Prefactor     .10000E-03    5.0574        .61885E-06** at limit **
  17  norm          1.8194        1.2706        .94300E-07    .83488E-06
  18  Prefactor     40.291        1.0771       -.58527E-07   -.63090E-03
  19  Prefactor     .10000E-03    3.4288        .26039E-06** at limit **
  20  Prefactor     .10000E-03    7.7575        .60286E-06** at limit **
  21  Prefactor     .15134        .89751E-01   -.11595E-07   -.36631E-03
  22  Prefactor     .10032E-03    24.372       -.23911E-05** at limit **
  23  Prefactor     2.8253        6.5566        .89263E-05    .69021E-03
  24  Prefactor     .10000E-03    7.2944       -.77547E-06** at limit **
  25  Normalizat    .67875        .24369       -.94906E-05   -.31565E-03
  26  Prefactor     1.1052        .13537        .16600E-05   -.60513E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.0973
  Prefactor  = 0.000101126
  Prefactor  = 0.000100189
  norm       = 3.20123
  norm       = 17.5319
  Prefactor  = 0.000101686
  Prefactor  = 0.000100045
  norm       = 2.38024
  Prefactor  = 12.9015
  Prefactor  = 0.000104603
  Prefactor  = 0.000100003
  norm       = 3.99857
  Prefactor  = 0.0001
  Prefactor  = 3.00035
  Prefactor  = 0.761347
  Prefactor  = 0.0001
  norm       = 1.81936
  Prefactor  = 40.2906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.151341
  Prefactor  = 0.000100323
  Prefactor  = 2.82527
  Prefactor  = 0.0001
  Normalizat = 0.67875
  Prefactor  = 1.10525
 **********
 **   18 **HESSE 
 **********

 FCN=   8355.454     FROM HESSE     STATUS=OK           516 CALLS     2679 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.097        3.7580        .23537E-02   -1.4857    
   2  Prefactor     .10113E-03    41.790        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10019E-03    70.714        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2012        1.9363        .56609E-02   -1.5350    
   5  norm          17.532        18.602        .23910E-02   -1.4870    
   6  Prefactor     .10169E-03    35.703        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    22.296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3802        1.0128        .66378E-02   -1.5399    
   9  Prefactor     12.902        20.629        .27892E-02   -1.4989    
  10  Prefactor     .10460E-03    14.903        .12476       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9986        4.1711        .50417E-02   -1.5308    
  13  Prefactor     .10000E-03    3.5415        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0004        11.142        .58544E-02   -1.5362    
  15  Prefactor     .76135        .20717        .46372E-02   -1.5533    
  16  Prefactor     .10000E-03    4.9440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8194        1.2689        .77400E-02   -1.5438    
  18  Prefactor     40.291        24.325        .15787E-02   -1.4438    
  19  Prefactor     .10000E-03    3.4211        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7551        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .15134        .92583E-01    .46168E-02   -1.5630    
  22  Prefactor     .10032E-03    27.356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.8253        6.6113        .60488E-02   -1.5372    
  24  Prefactor     .10000E-03    7.2728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .67875        .22455        .91473E-01   -1.0474    
  26  Prefactor     1.1052        .11912        .37390E-01   -.89299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34245e-07
Minuit parameter uncertainties:
  1  3.75803
  2  0.0137267
  3  0.00732439
  4  1.93635
  5  18.6082
  6  0.0155262
  7  0.00199524
  8  1.0128
  9  20.6407
  10  0.016569
  11  0.000475543
  12  4.17142
  13  3.38837e-06
  14  11.1494
  15  0.207167
  16  2.81761e-05
  17  1.26892
  18  24.3309
  19  1.43608e-05
  20  2.88134e-05
  21  0.0925826
  22  0.00594859
  23  6.61297
  24  7.82338e-05
  25  0.224853
  26  0.119147
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.388e-06  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.105e+00  1.191e-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:  6.787e-01  2.249e-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: 5.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276519/likelihoodResults_260582401_260841601_4FGL_J2222.8+1209_daily_bin82.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) = 8355.45553309
delta logL = -0.00133840191302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8355.45419446
delta logL = 2.24155883188e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3771       1.0000          .0000       10.000    
     3 'Normalizat'    .67874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1053       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=   8355.454     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      256 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.763        .17429E-01** at limit **
   2  Index         1.5939        5.9257        .50000       -.15347E-05
   3  Normalizat    .67876        .85937E-02    .40526E-03    .14307E-02
   4  Prefactor     1.1052        .48146E-02    .18028E-03    .31971E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.59393
  Normalizat = 0.678756
  Prefactor  = 1.10525
 **********
 **   18 **HESSE 
 **********

 FCN=   8355.454     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      283 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    171.97        .23393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5939        8.7311        .50000       -.74942    
   3  Normalizat    .67876        .25969E-01    .81052E-04   -1.0474    
   4  Prefactor     1.1052        .14549E-01    .36055E-04   -.89299    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.30034e-08
Minuit parameter uncertainties:
  1  0.000499592
  2  633.196
  3  0.0259699
  4  0.0145495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276519': 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) = 8355.45418784
delta logL = 6.84746555635e-06

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  4.996e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.594e+00  6.332e+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:  1.105e+00  1.455e-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:  6.788e-01  2.597e-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/276519/cmap_HighResolution_260582401_260841601_4FGL_J2222.8+1209_daily_bin82.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', job_status='DONE', photon_flux_upper_limit='5.96e-08', time_completed='2021-09-28 10:20:08.602091', job_id='276519', GAL2='1.11', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632849608.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='6.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='82' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:20:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 276519: <4FGL_J2222.8+1209_daily_bin82> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin82 335.71 12.1568 260582401 260841601 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 :                                   740.00 sec.
    Max Memory :                                 1140 MB
    Average Memory :                             311.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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

