/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 31 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 = 7401
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin402
RA = 335.71, Dec = 12.1568
tmin = 343526401, tmax = 343785601
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='277911', job_status='RUN', time_executed='2021-09-28 10:11:28.811375', time_epoch_executed='1632849088.81' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277911

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277911/ft1_4FGL_J2222.8+1209_daily_bin402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277911/ft2_4FGL_J2222.8+1209_daily_bin402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277911/ft1_4FGL_J2222.8+1209_daily_bin402.fits outfile=/scratch/kocevski/277911/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin402.fits ra=335.71 dec=12.1568 rad=12.0 tmin=343526401.0 tmax=343785601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.45
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277911/ft1_filtered_4FGL_J2222.8+1209_daily_bin402.fits" evtable="EVENTS" scfile=/scratch/kocevski/277911/ft2_4FGL_J2222.8+1209_daily_bin402.fits sctable="SC_DATA" outfile=/scratch/kocevski/277911/ltcube_343526401_343785601_4FGL_J2222.8+1209_daily_bin402.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/277911/ft2_4FGL_J2222.8+1209_daily_bin402.fits
.....................!
real 11.84
user 11.43
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277911/ft1_filtered_4FGL_J2222.8+1209_daily_bin402.fits evtable="EVENTS" scfile=/scratch/kocevski/277911/ft2_4FGL_J2222.8+1209_daily_bin402.fits sctable="SC_DATA" expcube=/scratch/kocevski/277911/ltcube_343526401_343785601_4FGL_J2222.8+1209_daily_bin402.fits outfile=/scratch/kocevski/277911/expmap_343526401_343785601_4FGL_J2222.8+1209_daily_bin402.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/277911/ltcube_343526401_343785601_4FGL_J2222.8+1209_daily_bin402.fits
.....................!
real 191.57
user 185.74
sys 5.20

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/277911/ft1_filtered_4FGL_J2222.8+1209_daily_bin402.fits scfile=/scratch/kocevski/277911/ft2_4FGL_J2222.8+1209_daily_bin402.fits outfile=/scratch/kocevski/277911/cmap_343526401_343785601_4FGL_J2222.8+1209_daily_bin402.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277911/ft1_filtered_4FGL_J2222.8+1209_daily_bin402.fits scfile=/scratch/kocevski/277911/ft2_4FGL_J2222.8+1209_daily_bin402.fits outfile=/scratch/kocevski/277911/cmap_HighResolution_343526401_343785601_4FGL_J2222.8+1209_daily_bin402.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/277911/ft1_filtered_4FGL_J2222.8+1209_daily_bin402.fits evtable="EVENTS" scfile=/scratch/kocevski/277911/ft2_4FGL_J2222.8+1209_daily_bin402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/277911/Model_4FGL_J2222.8+1209_daily_bin402.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/277911/ft1_filtered_4FGL_J2222.8+1209_daily_bin402.fits.....................!
real 68.65
user 67.33
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7995       1.0000         .10000E-03   10000.    
     2 'Prefactor '    79.615       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.8463       1.0000         .10000E-03   10000.    
     5 'norm      '    .10352E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3420       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.380       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8684       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .83284       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0661       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1951       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0478       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .52979E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1840       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0678       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92820       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=   7191.610     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3048 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7997        2.8123        .11295E-07   -.10853E-04
   2  Prefactor     79.626        81.548        .81434E-05    .59148E-04
   3  Prefactor     .10000E-03    69.406       -.11218E-05** at limit **
   4  norm          5.8442        3.4241       -.39957E-06    .11589E-04
   5  norm          .10000E-03    26.815       -.16074E-05** at limit **
   6  Prefactor     .10000E-03    10.296       -.14960E-05** at limit **
   7  Prefactor     .10000E-03    14.853       -.15770E-05** at limit **
   8  norm          2.3420        1.0773       -.58121E-09   -.50828E-04
   9  Prefactor     .10000E-03    7.7133        .40981E-06** at limit **
  10  Prefactor     .10000E-03    27.489        .36674E-05** at limit **
  11  Prefactor     .10000E-03    6.7804       -.71104E-07** at limit **
  12  norm          .10000E-03    2.1213       -.39432E-07** at limit **
  13  Prefactor     10.381        14.008        .24934E-06   -.23487E-03
  14  Prefactor     2.8649        7.8004        .21947E-05   -.80008E-03
  15  Prefactor     .83288        .23806       -.25422E-08   -.13309E-03
  16  Prefactor     6.0658        8.3923        .31722E-06   -.56020E-03
  17  norm          3.1953        1.8788       -.12379E-07   -.52648E-04
  18  Prefactor     .10000E-03    13.462        .64043E-05** at limit **
  19  Prefactor     8.0489        8.2067       -.37913E-07   -.17570E-04
  20  Prefactor     .10000E-03    4.7095        .77704E-08** at limit **
  21  Prefactor     .52981E-01    .94666E-01    .37273E-07   -.68279E-03
  22  Prefactor     .10000E-03    15.196       -.42205E-05** at limit **
  23  Prefactor     1.1843        5.3242       -.21124E-05   -.33780E-03
  24  Prefactor     .10000E-03    2.9765        .40858E-08** at limit **
  25  Normalizat    1.0675        .22059       -.43685E-06   -.11417E-04
  26  Prefactor     .92829        .11766       -.21779E-07   -.14123E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.79967
  Prefactor  = 79.6264
  Prefactor  = 0.0001
  norm       = 5.8442
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.3808
  Prefactor  = 2.86489
  Prefactor  = 0.832884
  Prefactor  = 6.06576
  norm       = 3.1953
  Prefactor  = 0.0001
  Prefactor  = 8.04891
  Prefactor  = 0.0001
  Prefactor  = 0.0529809
  Prefactor  = 0.0001
  Prefactor  = 1.18434
  Prefactor  = 0.0001
  Normalizat = 1.06753
  Prefactor  = 0.928288
 **********
 **   18 **HESSE 
 **********

 FCN=   7191.610     FROM HESSE     STATUS=OK           458 CALLS     3506 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7997        2.8139        .95134E-04   -1.5226    
   2  Prefactor     79.626        81.844        .22505E-03   -1.3921    
   3  Prefactor     .10000E-03    69.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8442        3.4405        .10780E-03   -1.5224    
   5  norm          .10000E-03    26.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3420        1.0729        .57178E-04   -1.5402    
   9  Prefactor     .10000E-03    7.7256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.1357        .12059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.381        14.230        .62181E-03   -1.5063    
  14  Prefactor     2.8649        14.217        .12000E-02   -1.5369    
  15  Prefactor     .83288        .23835        .20409E-04   -1.5525    
  16  Prefactor     6.0658        8.7492        .81508E-03   -1.5215    
  17  norm          3.1953        1.8760        .85626E-04   -1.5350    
  18  Prefactor     .10000E-03    13.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0489        8.2022        .14133E-03   -1.5140    
  20  Prefactor     .10000E-03    4.7118        .17973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .52981E-01    .88883E-01    .33098E-03   -1.5662    
  22  Prefactor     .10000E-03    15.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1843        5.6033        .38700E-03   -1.5490    
  24  Prefactor     .10000E-03    2.9779        .14289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0675        .26533        .33085E-03   -.90801    
  26  Prefactor     .92829        .14005        .19184E-03   -.95160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00239e-08
Minuit parameter uncertainties:
  1  2.81395
  2  81.9599
  3  4.31013e-05
  4  3.44066
  5  2.25228e-05
  6  2.91786e-05
  7  3.77969e-05
  8  1.07292
  9  7.4181e-06
  10  0.000104623
  11  9.00813e-07
  12  1.12518e-06
  13  14.2346
  14  12.7685
  15  0.23835
  16  8.75105
  17  1.87604
  18  0.000141904
  19  8.20332
  20  5.45386e-07
  21  0.0888829
  22  0.000101664
  23  5.15276
  24  9.83921e-07
  25  0.265659
  26  0.140109
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.038e+01  1.423e+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:  9.283e-01  1.401e-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.068e+00  2.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.68
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277911/likelihoodResults_343526401_343785601_4FGL_J2222.8+1209_daily_bin402.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): 0
logL (Free Index) = 7191.60903077
delta logL = 0.00075685862339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7191.60835035
delta logL = 0.00143727594059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.036       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3540       1.0000          .0000       10.000    
     3 'Normalizat'    1.0696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92783       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=   7191.608     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      231 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.073        492.40        .30150E-02    .58175E-04
   2  Index         2.3489        6.0846        .18250        .88128E-04
   3  Normalizat    1.0698        .79209E-01    .74690E-01    .73065E-05
   4  Prefactor     .92740        .35932E-01    .45359E-01   -.51559E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0733
  Index      = 2.34887
  Normalizat = 1.06977
  Prefactor  = 0.927396
 **********
 **   18 **HESSE 
 **********

 FCN=   7191.608     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.073        21.405        .12060E-03   -1.5042    
   2  Index         2.3489        1.1600        .10346E-01   -.55887    
   3  Normalizat    1.0698        .25531        .33055E-03   -.90728    
   4  Prefactor     .92740        .13848        .19192E-03   -.95190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47467e-11
Minuit parameter uncertainties:
  1  21.4203
  2  1.17494
  3  0.255599
  4  0.138538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277911': 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) = 7191.6083188
delta logL = 0.00146883046091

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.107e+01  2.142e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.349e+00  1.175e+00  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:  9.274e-01  1.385e-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.070e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.68
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/277911/cmap_HighResolution_343526401_343785601_4FGL_J2222.8+1209_daily_bin402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-28 10:24:05.591642', job_id='277911', GAL2='0.93', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632849845.59', return_code2='0', ts='0.68', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.47e-03', ts2='0.69', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='402' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:24:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 277911: <4FGL_J2222.8+1209_daily_bin402> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin402> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:44 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:10:45 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:10:45 2021
Terminated at Tue Sep 28 10:24:07 2021
Results reported at Tue Sep 28 10:24:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin402 335.71 12.1568 343526401 343785601 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 :                                   756.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            803 sec.

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

