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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin101
RA = 335.71, Dec = 12.1568
tmin = 265507201, tmax = 265766401
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='276547', job_status='RUN', time_executed='2021-09-28 10:08:27.198907', time_epoch_executed='1632848907.2' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276547

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276547/ft1_4FGL_J2222.8+1209_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276547/ft2_4FGL_J2222.8+1209_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276547/ft1_4FGL_J2222.8+1209_daily_bin101.fits outfile=/scratch/kocevski/276547/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin101.fits ra=335.71 dec=12.1568 rad=12.0 tmin=265507201.0 tmax=265766401.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.52
user 1.36
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276547/ft1_filtered_4FGL_J2222.8+1209_daily_bin101.fits" evtable="EVENTS" scfile=/scratch/kocevski/276547/ft2_4FGL_J2222.8+1209_daily_bin101.fits sctable="SC_DATA" outfile=/scratch/kocevski/276547/ltcube_265507201_265766401_4FGL_J2222.8+1209_daily_bin101.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/276547/ft2_4FGL_J2222.8+1209_daily_bin101.fits
.....................!
real 12.41
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276547/ft1_filtered_4FGL_J2222.8+1209_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/276547/ft2_4FGL_J2222.8+1209_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/276547/ltcube_265507201_265766401_4FGL_J2222.8+1209_daily_bin101.fits outfile=/scratch/kocevski/276547/expmap_265507201_265766401_4FGL_J2222.8+1209_daily_bin101.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/276547/ltcube_265507201_265766401_4FGL_J2222.8+1209_daily_bin101.fits
.....................!
real 190.49
user 184.95
sys 5.19

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/276547/ft1_filtered_4FGL_J2222.8+1209_daily_bin101.fits scfile=/scratch/kocevski/276547/ft2_4FGL_J2222.8+1209_daily_bin101.fits outfile=/scratch/kocevski/276547/cmap_265507201_265766401_4FGL_J2222.8+1209_daily_bin101.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.67
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276547/ft1_filtered_4FGL_J2222.8+1209_daily_bin101.fits scfile=/scratch/kocevski/276547/ft2_4FGL_J2222.8+1209_daily_bin101.fits outfile=/scratch/kocevski/276547/cmap_HighResolution_265507201_265766401_4FGL_J2222.8+1209_daily_bin101.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.56
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4460       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    119.96       1.0000         .10000E-03   10000.    
     4 'norm      '    10.563       1.0000         .10000E-03   10000.    
     5 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.0757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.803       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8352       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42780       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.119       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2141       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0838       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.731       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.905       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1300       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84501       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=   8473.858     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     3045 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4460        2.7108        .10272E-06   -.18678E-03
   2  Prefactor     .10000E-03    32.789        .19360E-04** at limit **
   3  Prefactor     119.95        70.196       -.88179E-05    .83078E-04
   4  norm          10.562        3.4059        .14390E-06    .32720E-03
   5  norm          .10000E-03    19.886       -.19594E-04** at limit **
   6  Prefactor     29.674        31.625       -.10926E-05   -.28536E-04
   7  Prefactor     .10000E-03    38.205        .23355E-04** at limit **
   8  norm          5.0757        1.4107       -.67914E-08   -.23838E-03
   9  Prefactor     24.802        17.736        .21464E-06    .97839E-05
  10  Prefactor     .10000E-03    11.107       -.14118E-05** at limit **
  11  Prefactor     .10000E-03    13.347        .13832E-04** at limit **
  12  norm          .10000E-03    8.9648        .18183E-05** at limit **
  13  Prefactor     .10000E-03    9.2677        .27213E-05** at limit **
  14  Prefactor     6.8352        13.079       -.54329E-06   -.92913E-04
  15  Prefactor     .42781        .20129       -.19393E-07   -.79993E-03
  16  Prefactor     15.119        10.143       -.53472E-07   -.31676E-04
  17  norm          2.2143        1.5024        .70174E-07    .23861E-03
  18  Prefactor     .10000E-03    51.738       -.34786E-04** at limit **
  19  Prefactor     .10000E-03    5.1643       -.24065E-06** at limit **
  20  Prefactor     .10000E-03    10.141       -.97342E-05** at limit **
  21  Prefactor     3.0838        .31054        .45281E-08    .42057E-02
  22  Prefactor     21.731        30.283        .25159E-06    .10129E-05
  23  Prefactor     11.906        8.9294       -.84822E-07   -.66254E-05
  24  Prefactor     .10000E-03    3.0161       -.77504E-07** at limit **
  25  Normalizat    1.1301        .24166        .11878E-05   -.17178E-04
  26  Prefactor     .84498        .12113       -.18718E-06    .61065E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.44602
  Prefactor  = 0.0001
  Prefactor  = 119.947
  norm       = 10.5622
  norm       = 0.0001
  Prefactor  = 29.6743
  Prefactor  = 0.0001
  norm       = 5.07569
  Prefactor  = 24.8025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.83518
  Prefactor  = 0.427805
  Prefactor  = 15.1191
  norm       = 2.21432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.08377
  Prefactor  = 21.7313
  Prefactor  = 11.9056
  Prefactor  = 0.0001
  Normalizat = 1.13006
  Prefactor  = 0.844978
 **********
 **   18 **HESSE 
 **********

 FCN=   8473.858     FROM HESSE     STATUS=OK           456 CALLS     3501 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4460        2.7093        .10137E-03   -1.5241    
   2  Prefactor     .10000E-03    32.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     119.95        70.099        .18371E-03   -1.3513    
   4  norm          10.562        3.4091        .91038E-04   -1.5058    
   5  norm          .10000E-03    19.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.674        31.610        .73548E-04   -1.4618    
   7  Prefactor     .10000E-03    38.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0757        1.4117        .54920E-04   -1.5257    
   9  Prefactor     24.802        17.746        .80433E-04   -1.4712    
  10  Prefactor     .10000E-03    11.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.3446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8352        13.154        .15346E-03   -1.5185    
  15  Prefactor     .42781        .20041        .26555E-04   -1.5577    
  16  Prefactor     15.119        10.157        .10301E-03   -1.4930    
  17  norm          2.2143        1.5077        .90576E-04   -1.5410    
  18  Prefactor     .10000E-03    51.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0838        .31154        .15438E-04   -1.5357    
  22  Prefactor     21.731        30.323        .85923E-04   -1.4775    
  23  Prefactor     11.906        8.9320        .11610E-03   -1.5018    
  24  Prefactor     .10000E-03    3.0171        .15613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1301        .28433        .37087E-03   -.88792    
  26  Prefactor     .84498        .14252        .22269E-03   -.98091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74767e-10
Minuit parameter uncertainties:
  1  2.70936
  2  3.94737e-06
  3  70.1476
  4  3.40913
  5  0.000158757
  6  31.6281
  7  3.61235e-05
  8  1.41172
  9  17.7494
  10  5.78125e-06
  11  1.03863e-05
  12  3.69308e-05
  13  9.44059e-06
  14  13.1596
  15  0.200409
  16  10.158
  17  1.50776
  18  7.21404e-05
  19  2.30435e-06
  20  5.17807e-06
  21  0.311541
  22  30.3446
  23  8.93296
  24  4.1076e-07
  25  0.284712
  26  0.142585
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  9.441e-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:  8.450e-01  1.426e-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.130e+00  2.847e-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: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276547/likelihoodResults_265507201_265766401_4FGL_J2222.8+1209_daily_bin101.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) = 8473.85854306
delta logL = -0.00051164064098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8473.85803186
delta logL = -4.43702447228e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4036       1.0000          .0000       10.000    
     3 'Normalizat'    1.1299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84508       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=   8473.858     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    559.83        .90712E-02** at limit **
   2  Index         2.4004        5.8274        .50000        .28704E-05
   3  Normalizat    1.1301        .49149E-01    .83762E-01    .28818E-04
   4  Prefactor     .84498        .26040E-01    .44301E-01    .22079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40044
  Normalizat = 1.13007
  Prefactor  = 0.844977
 **********
 **   18 **HESSE 
 **********

 FCN=   8473.858     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1126.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4004        8.0772        .50000       -.54675    
   3  Normalizat    1.1301        .78652E-01    .37087E-03   -.88792    
   4  Prefactor     .84498        .41758E-01    .22269E-03   -.98091    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.92841e-09
Minuit parameter uncertainties:
  1  0.000218297
  2  47.9591
  3  0.0786604
  4  0.0417597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276547': 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) = 8473.85803142
delta logL = 4.48926584795e-09

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.183e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.400e+00  4.796e+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:  8.450e-01  4.176e-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:  1.130e+00  7.866e-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/276547/cmap_HighResolution_265507201_265766401_4FGL_J2222.8+1209_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', job_status='DONE', photon_flux_upper_limit='9.31e-08', time_completed='2021-09-28 10:22:32.977224', job_id='276547', GAL2='0.84', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632849752.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.49e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='101' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:22:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 276547: <4FGL_J2222.8+1209_daily_bin101> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin101 335.71 12.1568 265507201 265766401 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 :                                   846.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             338.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            990 sec.

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

