/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 107 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin395
RA = 335.71, Dec = 12.1568
tmin = 341712001, tmax = 341971201
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='277901', job_status='RUN', time_executed='2021-09-28 10:12:41.160126', time_epoch_executed='1632849161.16' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277901/ft1_4FGL_J2222.8+1209_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277901/ft2_4FGL_J2222.8+1209_daily_bin395.fits


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

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

Done.
real 3.39
user 3.18
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277901/ft1_filtered_4FGL_J2222.8+1209_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/277901/ft2_4FGL_J2222.8+1209_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/277901/ltcube_341712001_341971201_4FGL_J2222.8+1209_daily_bin395.fits outfile=/scratch/kocevski/277901/expmap_341712001_341971201_4FGL_J2222.8+1209_daily_bin395.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/277901/ltcube_341712001_341971201_4FGL_J2222.8+1209_daily_bin395.fits
.....................!
real 193.53
user 185.63
sys 5.49

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/277901/ft1_filtered_4FGL_J2222.8+1209_daily_bin395.fits scfile=/scratch/kocevski/277901/ft2_4FGL_J2222.8+1209_daily_bin395.fits outfile=/scratch/kocevski/277901/cmap_341712001_341971201_4FGL_J2222.8+1209_daily_bin395.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.54
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5705       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    81.994       1.0000         .10000E-03   10000.    
     4 'norm      '    6.0267       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2699       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12224E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    59.013       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2935       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.147       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.858       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32118       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9089       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2723       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22972E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81320       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99383       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=   8140.652     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3180 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5701        3.6829       -.85825E-08    .24327E-03
   2  Prefactor     .10000E-03    44.378       -.16792E-05** at limit **
   3  Prefactor     81.978        68.281       -.40522E-05   -.18754E-03
   4  norm          6.0265        2.8154       -.21878E-06   -.16998E-03
   5  norm          4.2804        22.002        .10094E-04   -.21313E-03
   6  Prefactor     .10001E-03    76.943       -.31567E-05** at limit **
   7  Prefactor     59.037        65.551        .30092E-05    .18763E-03
   8  norm          1.2934        .98196        .11096E-07   -.60694E-04
   9  Prefactor     .10000E-03    5.4054        .37840E-06** at limit **
  10  Prefactor     .10000E-03    8.4580        .18285E-07** at limit **
  11  Prefactor     .10001E-03    55.594        .53733E-05** at limit **
  12  norm          .10000E-03    1.4493        .15564E-07** at limit **
  13  Prefactor     22.146        17.322        .75109E-07   -.38922E-04
  14  Prefactor     11.857        12.999        .64703E-07   -.19537E-04
  15  Prefactor     .32119        .21315        .21904E-07   -.55983E-03
  16  Prefactor     4.9091        5.3413        .20434E-06   -.81508E-04
  17  norm          1.2723        1.1419       -.55927E-08    .60477E-06
  18  Prefactor     .10000E-03    7.4466       -.84056E-07** at limit **
  19  Prefactor     .10000E-03    4.6154        .17552E-07** at limit **
  20  Prefactor     .10000E-03    5.3166       -.44399E-06** at limit **
  21  Prefactor     .22987E-01    .59191E-01    .11666E-06   -.16384E-03
  22  Prefactor     .10000E-03    13.119        .20102E-07** at limit **
  23  Prefactor     .10000E-03    2.6855       -.37766E-07** at limit **
  24  Prefactor     .10000E-03    3.7075       -.11586E-08** at limit **
  25  Normalizat    .81334        .20967        .56410E-08   -.13327E-03
  26  Prefactor     .99374        .10755       -.47466E-06   -.85861E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.57011
  Prefactor  = 0.000100001
  Prefactor  = 81.9778
  norm       = 6.02646
  norm       = 4.2804
  Prefactor  = 0.000100009
  Prefactor  = 59.0368
  norm       = 1.29337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 22.146
  Prefactor  = 11.8574
  Prefactor  = 0.321192
  Prefactor  = 4.90915
  norm       = 1.27234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0229874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.813343
  Prefactor  = 0.993736
 **********
 **   18 **HESSE 
 **********

 FCN=   8140.652     FROM HESSE     STATUS=OK           458 CALLS     3638 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5701        3.6735        .10184E-03   -1.5089    
   2  Prefactor     .10000E-03    44.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     81.978        68.509        .44357E-04   -1.3895    
   4  norm          6.0265        2.8114        .96036E-04   -1.5217    
   5  norm          4.2804        22.819        .97489E-03   -1.5294    
   6  Prefactor     .10001E-03    79.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     59.037        67.245        .52226E-04   -1.4170    
   8  norm          1.2934        .98257        .73891E-04   -1.5481    
   9  Prefactor     .10000E-03    5.4301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.4708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    58.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4522        .10606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.146        17.205        .85113E-04   -1.4766    
  14  Prefactor     11.857        13.012        .11633E-03   -1.5019    
  15  Prefactor     .32119        .20418        .29749E-03   -1.5595    
  16  Prefactor     4.9091        5.3394        .90769E-03   -1.5265    
  17  norm          1.2723        1.1601        .88960E-04   -1.5482    
  18  Prefactor     .10000E-03    7.4496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .22987E-01    .55363E-01    .34244E-03   -1.5678    
  22  Prefactor     .10000E-03    13.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.3607        .28752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.7117        .16966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .81334        .24296        .36431E-03   -.99576    
  26  Prefactor     .99374        .12649        .17905E-03   -.92939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44858e-08
Minuit parameter uncertainties:
  1  3.67356
  2  0.000503998
  3  68.5754
  4  2.81145
  5  19.7778
  6  0.00169322
  7  67.3318
  8  0.982586
  9  4.56639e-05
  10  8.59587e-06
  11  0.00158816
  12  2.24527e-08
  13  17.2092
  14  13.0153
  15  0.204176
  16  5.33992
  17  1.16007
  18  9.5564e-06
  19  2.76955e-06
  20  4.48715e-05
  21  0.0553628
  22  4.12671e-06
  23  1.1154e-05
  24  3.77533e-07
  25  0.243284
  26  0.126524
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.215e+01  1.721e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.937e-01  1.265e-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:  8.133e-01  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 335.710 12.157
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.39e-08 +/- 5.74e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.87e-05

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

Saving results to:
/scratch/kocevski/277901/likelihoodResults_341712001_341971201_4FGL_J2222.8+1209_daily_bin395.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8138.9299927
delta logL = 1.72181068034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8138.83746771
delta logL = 1.81433566973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2724       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1909       1.0000          .0000       10.000    
     3 'Normalizat'    .66280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0530       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=   8138.837     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      276 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2560        6.6877        .98113E-02    .97982E-03
   2  Index         4.1970        1.7911        .78939E-01    .27465E-03
   3  Normalizat    .66303        .62042E-01    .90188E-01    .45190E-04
   4  Prefactor     1.0527        .33160E-01    .39740E-01   -.52534E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.256
  Index      = 4.19696
  Normalizat = 0.66303
  Prefactor  = 1.05268
 **********
 **   18 **HESSE 
 **********

 FCN=   8138.837     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2560        12.075        .44080E-04   -1.5484    
   2  Index         4.1970        2.6415        .31623E-02   -.16131    
   3  Normalizat    .66303        .21947        .39954E-03   -1.0537    
   4  Prefactor     1.0527        .11779        .17442E-03   -.90993    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.22632e-10
Minuit parameter uncertainties:
  1  7.79037
  2  2.78736
  3  0.219757
  4  0.117819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277901': 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) = 8138.83745497
delta logL = 1.8143484115

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.256e+00  7.790e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  4.197e+00  2.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:  1.053e+00  1.178e-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.630e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.86
Ra Dec: 335.710 12.157
Photon Index (Free Index): 4.20 +/- 2.79
Photon Flux (Free Index): 1.80e-07 +/- 8.30e-08
Energy Flux (Free Index): 2.61e-05 +/- 1.47e-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/277901/cmap_HighResolution_341712001_341971201_4FGL_J2222.8+1209_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='7.39e-08', energy_flux2='2.61e-05', photon_flux_error='5.74e-08', dlogl='1.81e+00', energy_flux='2.40e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-28 10:26:13.984810', photon_index_error2='2.79', photon_index2='4.20', ts='2.56', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.47e-05', EG='0.81', time_epoch_completed='1632849973.98', return_code='0', job_id='277901', GAL2='1.05', EG2='0.66', return_code2='102', energy_flux_error='1.87e-05', photon_flux_error2='8.30e-08', ts2='6.86', photon_index='2.41' WHERE bin_id='395' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:26:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 277901: <4FGL_J2222.8+1209_daily_bin395> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin395> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:43 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:10:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:10:45 2021
Terminated at Tue Sep 28 10:26:14 2021
Results reported at Tue Sep 28 10:26:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin395 335.71 12.1568 341712001 341971201 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 :                                   809.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

