/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 55 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin60
RA = 335.71, Dec = 12.1568
tmin = 254880001, tmax = 255139201
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='276485', job_status='RUN', time_executed='2021-09-28 10:07:03.544464', time_epoch_executed='1632848823.54' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276485

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276485/ft1_4FGL_J2222.8+1209_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276485/ft2_4FGL_J2222.8+1209_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276485/ft1_4FGL_J2222.8+1209_daily_bin60.fits outfile=/scratch/kocevski/276485/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin60.fits ra=335.71 dec=12.1568 rad=12.0 tmin=254880001.0 tmax=255139201.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.14
user 0.98
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276485/ft1_filtered_4FGL_J2222.8+1209_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/276485/ft2_4FGL_J2222.8+1209_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/276485/ltcube_254880001_255139201_4FGL_J2222.8+1209_daily_bin60.fits outfile=/scratch/kocevski/276485/expmap_254880001_255139201_4FGL_J2222.8+1209_daily_bin60.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/276485/ltcube_254880001_255139201_4FGL_J2222.8+1209_daily_bin60.fits
.....................!
real 145.06
user 140.98
sys 3.84

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/276485/ft1_filtered_4FGL_J2222.8+1209_daily_bin60.fits scfile=/scratch/kocevski/276485/ft2_4FGL_J2222.8+1209_daily_bin60.fits outfile=/scratch/kocevski/276485/cmap_254880001_255139201_4FGL_J2222.8+1209_daily_bin60.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.45
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276485/ft1_filtered_4FGL_J2222.8+1209_daily_bin60.fits scfile=/scratch/kocevski/276485/ft2_4FGL_J2222.8+1209_daily_bin60.fits outfile=/scratch/kocevski/276485/cmap_HighResolution_254880001_255139201_4FGL_J2222.8+1209_daily_bin60.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.45
user 0.31
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.004       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.4937       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.012       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4192       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7859       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.098       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5223       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11472E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1752       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34724       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5599       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7155       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .84313       1.0000         .10000E-03   10000.    
    22 'Prefactor '    93.223       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0695       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.7331       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99749       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96273       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=   12693.03     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3129 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.004        3.1785        .15481E-06   -.13617E-03
   2  Prefactor     7.9111        223.46       -.17478E-03    .93831E-05
   3  Prefactor     .10000E-03    18.270        .30321E-05** at limit **
   4  norm          8.4945        2.9766        .30932E-05   -.17192E-03
   5  norm          .10000E-03    6.9105        .54468E-06** at limit **
   6  Prefactor     46.008        31.830       -.33119E-05    .63609E-05
   7  Prefactor     .10000E-03    26.102        .29135E-05** at limit **
   8  norm          2.4192        .86062       -.33820E-07   -.12935E-03
   9  Prefactor     .10000E-03    7.2013        .23654E-06** at limit **
  10  Prefactor     5.7955        20.436        .83192E-05   -.38518E-04
  11  Prefactor     16.095        18.025       -.17262E-05   -.98667E-05
  12  norm          1.5220        2.4158       -.41316E-06   -.90345E-03
  13  Prefactor     .10000E-03    18.961       -.36593E-05** at limit **
  14  Prefactor     2.1749        4.9700       -.10664E-05   -.64587E-03
  15  Prefactor     .34724        .14672       -.60590E-08   -.34684E-03
  16  Prefactor     1.5599        3.1511       -.62874E-06   -.95215E-03
  17  norm          .10000E-03    .35002       -.13305E-06** at limit **
  18  Prefactor     .10000E-03    23.884       -.21124E-05** at limit **
  19  Prefactor     8.7155        7.6756       -.28661E-06   -.16481E-04
  20  Prefactor     .10000E-03    33.534        .17588E-05** at limit **
  21  Prefactor     .84319        .15057       -.16872E-07    .31593E-03
  22  Prefactor     93.215        37.280       -.54506E-05   -.22372E-05
  23  Prefactor     2.0689        4.7182       -.16840E-05   -.95482E-03
  24  Prefactor     9.7334        8.7163        .35101E-07   -.27056E-04
  25  Normalizat    .99746        .18431       -.16459E-05    .27053E-03
  26  Prefactor     .96277        .94094E-01    .16202E-05   -.16905E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0042
  Prefactor  = 7.91107
  Prefactor  = 0.0001
  norm       = 8.49447
  norm       = 0.0001
  Prefactor  = 46.0078
  Prefactor  = 0.0001
  norm       = 2.41923
  Prefactor  = 0.0001
  Prefactor  = 5.79545
  Prefactor  = 16.0954
  norm       = 1.52195
  Prefactor  = 0.0001
  Prefactor  = 2.17494
  Prefactor  = 0.347242
  Prefactor  = 1.55986
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.71549
  Prefactor  = 0.0001
  Prefactor  = 0.84319
  Prefactor  = 93.2152
  Prefactor  = 2.06886
  Prefactor  = 9.73339
  Normalizat = 0.997456
  Prefactor  = 0.962767
 **********
 **   18 **HESSE 
 **********

 FCN=   12693.03     FROM HESSE     STATUS=OK           468 CALLS     3597 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.004        3.1794        .92827E-04   -1.5015    
   2  Prefactor     7.9111        221.83        .14208E-03   -1.5145    
   3  Prefactor     .10000E-03    18.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.4945        2.9648        .91801E-04   -1.5125    
   5  norm          .10000E-03    6.9541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.008        31.839        .59109E-04   -1.4350    
   7  Prefactor     .10000E-03    26.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4192        .85867        .59445E-04   -1.5397    
   9  Prefactor     .10000E-03    7.2209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7955        20.446        .16697E-03   -1.5226    
  11  Prefactor     16.095        18.052        .99823E-04   -1.4905    
  12  norm          1.5220        2.3890        .21388E-03   -1.5461    
  13  Prefactor     .10000E-03    19.656        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1749        4.9562        .27917E-03   -1.5413    
  15  Prefactor     .34724        .14325        .26358E-04   -1.5590    
  16  Prefactor     1.5599        3.1147        .27662E-03   -1.5458    
  17  norm          .10000E-03    .52437        .12887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7155        7.6100        .13578E-03   -1.5117    
  20  Prefactor     .10000E-03    34.411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .84319        .15044        .17414E-04   -1.5524    
  22  Prefactor     93.215        37.347        .20812E-03   -1.3774    
  23  Prefactor     2.0689        4.7250        .28717E-03   -1.5420    
  24  Prefactor     9.7334        8.7125        .12845E-03   -1.5084    
  25  Normalizat    .99746        .21576        .36195E-03   -.93116    
  26  Prefactor     .96277        .11083        .19806E-03   -.93981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99391e-09
Minuit parameter uncertainties:
  1  3.17946
  2  84.1301
  3  3.6883e-05
  4  2.96482
  5  4.49516e-05
  6  31.8508
  7  9.29475e-06
  8  0.858679
  9  2.53308e-05
  10  20.471
  11  18.0576
  12  2.38913
  13  4.63187e-05
  14  4.95713
  15  0.143253
  16  3.11503
  17  5.1958e-06
  18  8.97568e-06
  19  7.61087
  20  1.06369e-05
  21  0.150445
  22  37.356
  23  4.72585
  24  8.71368
  25  0.215946
  26  0.110858
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  4.632e-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:  9.628e-01  1.109e-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:  9.975e-01  2.159e-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: 7.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276485/likelihoodResults_254880001_255139201_4FGL_J2222.8+1209_daily_bin60.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) = 12693.0272366
delta logL = -0.000242860201979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12693.0269926
delta logL = 1.16432602226e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18391E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5322       1.0000          .0000       10.000    
     3 'Normalizat'    .99764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96268       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=   12692.47     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      285 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32806        3.7149        .90712E-02    .42841E-02
   2  Index         4.2940        2.0443        .12342        .34223E-03
   3  Normalizat    .92017        .33311E-01    .84783E-01    .85823E-04
   4  Prefactor     .98672        .18024E-01    .45799E-01   -.10888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.328064
  Index      = 4.29404
  Normalizat = 0.920165
  Prefactor  = 0.986718
 **********
 **   18 **HESSE 
 **********

 FCN=   12692.47     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      316 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32806        14.202        .59378E-04   -1.5593    
   2  Index         4.2940        7.0630        .65571E-02   -.14167    
   3  Normalizat    .92017        .16886        .37537E-03   -.95755    
   4  Prefactor     .98672        .89310E-01    .19589E-03   -.93174    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.78068e-09
Minuit parameter uncertainties:
  1  4.31738
  2  5.78716
  3  0.168953
  4  0.0893231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276485': 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) = 12692.4698097
delta logL = 0.557184002182

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  3.281e-01  4.317e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  4.294e+00  5.787e+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.867e-01  8.932e-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:  9.202e-01  1.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 335.710 12.157
Photon Index (Free Index): 4.29 +/- 5.79
Photon Flux (Free Index): 5.84e-08 +/- 5.56e-08
Energy Flux (Free Index): 8.37e-06 +/- 1.07e-05

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/276485/cmap_HighResolution_254880001_255139201_4FGL_J2222.8+1209_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', comment='SUCCESS', energy_flux2='8.37e-06', dlogl='5.57e-01', photon_flux2='5.84e-08', job_status='DONE', time_completed='2021-09-28 10:21:38.189007', photon_index_error2='5.79', photon_index2='4.29', ts='-0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.25e-08', energy_flux_error2='1.07e-05', EG='1.00', time_epoch_completed='1632849698.19', return_code='0', job_id='276485', GAL2='0.99', EG2='0.92', return_code2='102', photon_flux_error2='5.56e-08', ts2='1.23', photon_index='2.41' WHERE bin_id='60' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 276485: <4FGL_J2222.8+1209_daily_bin60> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin60 335.71 12.1568 254880001 255139201 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 :                                   873.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            938 sec.

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

