/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 142 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 = 7404
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin600
RA = 335.71, Dec = 12.1568
tmin = 394848001, tmax = 395107201
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='279215', job_status='RUN', time_executed='2021-09-28 10:18:02.799176', time_epoch_executed='1632849482.8' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279215

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279215/ft1_4FGL_J2222.8+1209_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279215/ft2_4FGL_J2222.8+1209_daily_bin600.fits


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

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

Done.
real 5.23
user 4.97
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279215/ft1_filtered_4FGL_J2222.8+1209_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/279215/ft2_4FGL_J2222.8+1209_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/279215/ltcube_394848001_395107201_4FGL_J2222.8+1209_daily_bin600.fits outfile=/scratch/kocevski/279215/expmap_394848001_395107201_4FGL_J2222.8+1209_daily_bin600.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/279215/ltcube_394848001_395107201_4FGL_J2222.8+1209_daily_bin600.fits
.....................!
real 196.26
user 191.60
sys 4.35

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/279215/ft1_filtered_4FGL_J2222.8+1209_daily_bin600.fits scfile=/scratch/kocevski/279215/ft2_4FGL_J2222.8+1209_daily_bin600.fits outfile=/scratch/kocevski/279215/cmap_394848001_395107201_4FGL_J2222.8+1209_daily_bin600.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279215/ft1_filtered_4FGL_J2222.8+1209_daily_bin600.fits scfile=/scratch/kocevski/279215/ft2_4FGL_J2222.8+1209_daily_bin600.fits outfile=/scratch/kocevski/279215/cmap_HighResolution_394848001_395107201_4FGL_J2222.8+1209_daily_bin600.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6009       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2187       1.0000         .10000E-03   10000.    
     5 'norm      '    13.068       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.841       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.7694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.741       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0153       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7219       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .88546E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8769       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.844       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.760       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .69779       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0025       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=   7035.567     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3105 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6007        3.6146       -.46750E-06   -.15184E-03
   2  Prefactor     .10000E-03    60.163       -.82945E-06** at limit **
   3  Prefactor     .10000E-03    15.961       -.17109E-05** at limit **
   4  norm          2.2177        3.0929        .14158E-06   -.24576E-03
   5  norm          13.070        21.376        .43532E-06    .13828E-04
   6  Prefactor     28.849        42.458        .54568E-05    .16924E-03
   7  Prefactor     .10000E-03    26.515       -.51887E-06** at limit **
   8  norm          .10000E-03    .35900       -.60526E-07** at limit **
   9  Prefactor     .10000E-03    7.1548        .66516E-06** at limit **
  10  Prefactor     .10000E-03    13.478        .24183E-05** at limit **
  11  Prefactor     .10000E-03    9.4923       -.11980E-05** at limit **
  12  norm          5.7697        4.0484        .76325E-06   -.17835E-02
  13  Prefactor     .10000E-03    8.9763        .11428E-05** at limit **
  14  Prefactor     15.741        12.302        .10799E-06   -.28773E-03
  15  Prefactor     2.0154        .32312        .83939E-08   -.36473E-03
  16  Prefactor     .10000E-03    2.7847       -.39828E-08** at limit **
  17  norm          2.7213        1.9635       -.15383E-07   -.58059E-03
  18  Prefactor     .10000E-03    11.476       -.78586E-06** at limit **
  19  Prefactor     .10016E-03    6.6712        .14049E-05** at limit **
  20  Prefactor     .10000E-03    6.5825        .14085E-06** at limit **
  21  Prefactor     1.8768        .25233        .56293E-08   -.10151E-02
  22  Prefactor     29.842        36.809       -.12256E-05   -.60170E-04
  23  Prefactor     .10000E-03    6.9289       -.79580E-06** at limit **
  24  Prefactor     31.758        19.478        .96874E-07   -.14210E-04
  25  Normalizat    .69770        .26016       -.13703E-05   -.79991E-04
  26  Prefactor     1.0026        .12895        .53381E-08   -.12771E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.60075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21773
  norm       = 13.0698
  Prefactor  = 28.8487
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.76968
  Prefactor  = 0.0001
  Prefactor  = 15.7412
  Prefactor  = 2.01538
  Prefactor  = 0.0001
  norm       = 2.72126
  Prefactor  = 0.0001
  Prefactor  = 0.000100165
  Prefactor  = 0.0001
  Prefactor  = 1.87683
  Prefactor  = 29.8418
  Prefactor  = 0.0001
  Prefactor  = 31.7583
  Normalizat = 0.697697
  Prefactor  = 1.00258
 **********
 **   18 **HESSE 
 **********

 FCN=   7035.567     FROM HESSE     STATUS=OK           450 CALLS     3555 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6007        3.6433        .12071E-03   -1.5279    
   2  Prefactor     .10000E-03    60.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2177        3.0773        .15365E-03   -1.5410    
   5  norm          13.070        21.213        .11081E-03   -1.4985    
   6  Prefactor     28.849        43.433        .74602E-04   -1.4633    
   7  Prefactor     .10000E-03    26.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .53573        .97070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7697        5.9130        .83607E-03   -1.5228    
  13  Prefactor     .10000E-03    9.0337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.741        12.338        .50475E-03   -1.4914    
  15  Prefactor     2.0154        .32338        .18050E-04   -1.5424    
  16  Prefactor     .10000E-03    2.7880        .13669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7213        1.9316        .95182E-04   -1.5378    
  18  Prefactor     .10000E-03    11.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10016E-03    43.019        .39344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.5858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.8768        .25244        .14675E-04   -1.5434    
  22  Prefactor     29.842        36.924        .73340E-04   -1.4615    
  23  Prefactor     .10000E-03    7.0475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.758        19.496        .71099E-04   -1.4580    
  25  Normalizat    .69770        .29275        .42218E-03   -1.0398    
  26  Prefactor     1.0026        .14697        .19352E-03   -.92644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02687e-09
Minuit parameter uncertainties:
  1  3.64348
  2  0.000119567
  3  0.000130594
  4  3.07751
  5  21.2255
  6  43.4806
  7  7.64867e-05
  8  7.63149e-06
  9  3.49332e-05
  10  0.000170053
  11  6.8169e-05
  12  5.91355
  13  6.74397e-05
  14  12.3402
  15  0.323382
  16  2.10846e-07
  17  1.93161
  18  4.99968e-05
  19  0.00533071
  20  7.63615e-06
  21  0.252445
  22  36.9526
  23  3.2187e-05
  24  19.4994
  25  0.293411
  26  0.147028
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  6.744e-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:  1.003e+00  1.470e-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.977e-01  2.934e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279215/likelihoodResults_394848001_395107201_4FGL_J2222.8+1209_daily_bin600.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) = 7035.5671322
delta logL = -0.000527627621523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7035.56660495
delta logL = -3.81797690352e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4020       1.0000          .0000       10.000    
     3 'Normalizat'    .69754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0027       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=   7035.567     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9029        .90712E-02** at limit **
   2  Index         2.3973        6.8069        .50000        .44191E-05
   3  Normalizat    .69770        .61117E-02    .95278E-01    .41047E-04
   4  Prefactor     1.0026        .33267E-02    .44767E-01    .78390E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39734
  Normalizat = 0.697698
  Prefactor  = 1.00258
 **********
 **   18 **HESSE 
 **********

 FCN=   7035.567     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      237 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    99.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3973        6.7209        .50000       -.54747    
   3  Normalizat    .69770        .19469E-01    .42218E-03   -1.0398    
   4  Prefactor     1.0026        .10627E-01    .19352E-03   -.92644    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.82271e-07
Minuit parameter uncertainties:
  1  3.20309e-05
  2  414.158
  3  0.0194689
  4  0.0106274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279215': 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) = 7035.56660456
delta logL = 1.00799297797e-08

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.203e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.397e+00  4.142e+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.003e+00  1.063e-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.977e-01  1.947e-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/279215/cmap_HighResolution_394848001_395107201_4FGL_J2222.8+1209_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-28 10:30:52.544303', job_id='279215', GAL2='1.00', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632850252.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='600' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:30:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 279215: <4FGL_J2222.8+1209_daily_bin600> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin600> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Sep 28 10:15:30 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:15:31 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:15:31 2021
Terminated at Tue Sep 28 10:30:53 2021
Results reported at Tue Sep 28 10:30:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin600 335.71 12.1568 394848001 395107201 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 :                                   770.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

