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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin531
RA = 335.71, Dec = 12.1568
tmin = 376963201, tmax = 377222401
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='279105', job_status='RUN', time_executed='2021-09-28 10:15:39.930007', time_epoch_executed='1632849339.93' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279105

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279105/ft1_4FGL_J2222.8+1209_daily_bin531.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279105/ft2_4FGL_J2222.8+1209_daily_bin531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279105/ft1_4FGL_J2222.8+1209_daily_bin531.fits outfile=/scratch/kocevski/279105/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin531.fits ra=335.71 dec=12.1568 rad=12.0 tmin=376963201.0 tmax=377222401.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 4.56
user 4.29
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279105/ft1_filtered_4FGL_J2222.8+1209_daily_bin531.fits" evtable="EVENTS" scfile=/scratch/kocevski/279105/ft2_4FGL_J2222.8+1209_daily_bin531.fits sctable="SC_DATA" outfile=/scratch/kocevski/279105/ltcube_376963201_377222401_4FGL_J2222.8+1209_daily_bin531.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/279105/ft2_4FGL_J2222.8+1209_daily_bin531.fits
.....................!
real 11.82
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279105/ft1_filtered_4FGL_J2222.8+1209_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/279105/ft2_4FGL_J2222.8+1209_daily_bin531.fits sctable="SC_DATA" expcube=/scratch/kocevski/279105/ltcube_376963201_377222401_4FGL_J2222.8+1209_daily_bin531.fits outfile=/scratch/kocevski/279105/expmap_376963201_377222401_4FGL_J2222.8+1209_daily_bin531.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/279105/ltcube_376963201_377222401_4FGL_J2222.8+1209_daily_bin531.fits
.....................!
real 191.71
user 186.46
sys 4.87

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/279105/ft1_filtered_4FGL_J2222.8+1209_daily_bin531.fits scfile=/scratch/kocevski/279105/ft2_4FGL_J2222.8+1209_daily_bin531.fits outfile=/scratch/kocevski/279105/cmap_376963201_377222401_4FGL_J2222.8+1209_daily_bin531.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279105/ft1_filtered_4FGL_J2222.8+1209_daily_bin531.fits scfile=/scratch/kocevski/279105/ft2_4FGL_J2222.8+1209_daily_bin531.fits outfile=/scratch/kocevski/279105/cmap_HighResolution_376963201_377222401_4FGL_J2222.8+1209_daily_bin531.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/279105/ft1_filtered_4FGL_J2222.8+1209_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/279105/ft2_4FGL_J2222.8+1209_daily_bin531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279105/Model_4FGL_J2222.8+1209_daily_bin531.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/279105/ft1_filtered_4FGL_J2222.8+1209_daily_bin531.fits.....................!
real 69.94
user 68.61
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9841       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .21224       1.0000         .10000E-03   10000.    
     5 'norm      '    22.505       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.044       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .70256       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2279       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5844       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3202       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1712       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8975       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .45506       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5074       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.390       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3344       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72651       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=   7036.642     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3107 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9855        2.2178        .67991E-06    .16066E-03
   2  Prefactor     .10000E-03    32.112        .16823E-04** at limit **
   3  Prefactor     .10000E-03    28.361       -.77261E-05** at limit **
   4  norm          .21750        1.3755       -.42269E-06    .91894E-03
   5  norm          22.491        23.297       -.22140E-05    .90053E-04
   6  Prefactor     36.016        28.961       -.10454E-04   -.59947E-04
   7  Prefactor     .10000E-03    16.258       -.17348E-05** at limit **
   8  norm          .70485        .99737        .25503E-06    .71819E-03
   9  Prefactor     .10000E-03    5.9474       -.13027E-06** at limit **
  10  Prefactor     .10000E-03    96.174        .76882E-07** at limit **
  11  Prefactor     8.2333        26.439        .19338E-05    .90890E-05
  12  norm          3.5832        5.4215        .85888E-06   -.49767E-04
  13  Prefactor     .10000E-03    20.249        .27284E-05** at limit **
  14  Prefactor     1.3185        2.3106        .50334E-06   -.13058E-02
  15  Prefactor     2.1713        .33073       -.17332E-07   -.40357E-03
  16  Prefactor     .10000E-03    7.9709        .50498E-08** at limit **
  17  norm          1.8978        1.4953       -.25541E-07   -.90121E-05
  18  Prefactor     .10000E-03    20.153        .43265E-05** at limit **
  19  Prefactor     .10000E-03    6.1884        .64581E-07** at limit **
  20  Prefactor     .10000E-03    5.2929       -.59695E-07** at limit **
  21  Prefactor     .45508        .16609       -.19613E-07   -.36240E-03
  22  Prefactor     .10000E-03    27.079       -.12508E-04** at limit **
  23  Prefactor     4.5076        7.2340        .33308E-06   -.11684E-04
  24  Prefactor     12.390        16.197       -.25704E-06    .90724E-05
  25  Normalizat    1.3343        .23287        .86064E-06    .97105E-05
  26  Prefactor     .72646        .11662        .15219E-06    .64449E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.98547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.2175
  norm       = 22.4907
  Prefactor  = 36.0163
  Prefactor  = 0.0001
  norm       = 0.704849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.23328
  norm       = 3.58322
  Prefactor  = 0.0001
  Prefactor  = 1.31854
  Prefactor  = 2.17129
  Prefactor  = 0.0001
  norm       = 1.8978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.455078
  Prefactor  = 0.0001
  Prefactor  = 4.50758
  Prefactor  = 12.3896
  Normalizat = 1.33429
  Prefactor  = 0.726461
 **********
 **   18 **HESSE 
 **********

 FCN=   7036.642     FROM HESSE     STATUS=OK           460 CALLS     3567 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9855        2.2021        .12430E-03   -1.5426    
   2  Prefactor     .10000E-03    32.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .21750        7.5293        .17627E-02   -1.5615    
   5  norm          22.491        23.295        .84434E-04   -1.4759    
   6  Prefactor     36.016        28.937        .66753E-04   -1.4507    
   7  Prefactor     .10000E-03    16.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .70485        .92241        .92858E-03   -1.5540    
   9  Prefactor     .10000E-03    5.9499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    98.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2333        26.475        .13977E-03   -1.5134    
  12  norm          3.5832        5.4089        .21345E-03   -1.5329    
  13  Prefactor     .10000E-03    20.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3185        12.568        .19150E-02   -1.5478    
  15  Prefactor     2.1713        .33233        .17811E-04   -1.5413    
  16  Prefactor     .10000E-03    8.3234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8978        1.4974        .88479E-04   -1.5432    
  18  Prefactor     .10000E-03    20.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.2940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .45508        .16528        .19449E-04   -1.5573    
  22  Prefactor     .10000E-03    27.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5076        7.2207        .18964E-03   -1.5283    
  24  Prefactor     12.390        16.218        .11380E-03   -1.5004    
  25  Normalizat    1.3343        .27621        .30815E-03   -.82549    
  26  Prefactor     .72646        .13679        .21215E-03   -1.0250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08695e-08
Minuit parameter uncertainties:
  1  2.20217
  2  8.45816e-05
  3  3.8217e-06
  4  2.55915
  5  23.3043
  6  28.948
  7  1.39278e-05
  8  0.922431
  9  9.67007e-07
  10  0.000137647
  11  26.513
  12  5.40962
  13  2.80818e-05
  14  8.1434
  15  0.332334
  16  5.38284e-06
  17  1.4974
  18  3.51686e-06
  19  4.77019e-06
  20  1.09765e-06
  21  0.165278
  22  5.12921e-05
  23  7.22207
  24  16.2239
  25  0.276522
  26  0.136852
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.808e-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:  7.265e-01  1.369e-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.334e+00  2.765e-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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279105/likelihoodResults_376963201_377222401_4FGL_J2222.8+1209_daily_bin531.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) = 7036.642381
delta logL = -0.000232761894949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7036.64215037
delta logL = -2.13319799514e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10700E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7620       1.0000          .0000       10.000    
     3 'Normalizat'    1.3343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72646       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=   7036.642     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      289 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11714E-03    .10112        .79582E-01** at limit **
   2  Index         2.5034        8.6872        .50000        .20667E-04
   3  Normalizat    1.3343        .61182E-03    .30814E-03   -.57020E-03
   4  Prefactor     .72646        .32296E-03    .21215E-03   -.64898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000117138
  Index      = 2.50337
  Normalizat = 1.33429
  Prefactor  = 0.726461
 **********
 **   18 **HESSE 
 **********

 FCN=   7036.642     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      320 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11714E-03    29.949        .48422E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5034        8.4828        .50000       -.52282    
   3  Normalizat    1.3343        .73680E-02    .61629E-04   -.82549    
   4  Prefactor     .72646        .38893E-02    .42431E-04   -1.0250    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.75472e-08
Minuit parameter uncertainties:
  1  0.0453332
  2  206.669
  3  0.00736804
  4  0.00388928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279105': 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) = 7036.64214905
delta logL = -8.15218299977e-07

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.171e-04  4.533e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.503e+00  2.067e+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:  7.265e-01  3.889e-03  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.334e+00  7.368e-03  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/279105/cmap_HighResolution_376963201_377222401_4FGL_J2222.8+1209_daily_bin531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-28 10:28:31.724861', job_id='279105', GAL2='0.73', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1632850111.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-8.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='531' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:28:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 279105: <4FGL_J2222.8+1209_daily_bin531> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin531 335.71 12.1568 376963201 377222401 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 :                             380.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

