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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin689
RA = 335.71, Dec = 12.1568
tmin = 417916801, tmax = 418176001
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='279341', job_status='RUN', time_executed='2021-09-28 10:19:37.352767', time_epoch_executed='1632849577.35' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279341/ft1_4FGL_J2222.8+1209_daily_bin689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279341/ft2_4FGL_J2222.8+1209_daily_bin689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279341/ft1_4FGL_J2222.8+1209_daily_bin689.fits outfile=/scratch/kocevski/279341/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin689.fits ra=335.71 dec=12.1568 rad=12.0 tmin=417916801.0 tmax=418176001.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 7.29
user 7.03
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279341/ft1_filtered_4FGL_J2222.8+1209_daily_bin689.fits" evtable="EVENTS" scfile=/scratch/kocevski/279341/ft2_4FGL_J2222.8+1209_daily_bin689.fits sctable="SC_DATA" outfile=/scratch/kocevski/279341/ltcube_417916801_418176001_4FGL_J2222.8+1209_daily_bin689.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/279341/ft2_4FGL_J2222.8+1209_daily_bin689.fits
.....................!
real 11.98
user 11.50
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279341/ft1_filtered_4FGL_J2222.8+1209_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/279341/ft2_4FGL_J2222.8+1209_daily_bin689.fits sctable="SC_DATA" expcube=/scratch/kocevski/279341/ltcube_417916801_418176001_4FGL_J2222.8+1209_daily_bin689.fits outfile=/scratch/kocevski/279341/expmap_417916801_418176001_4FGL_J2222.8+1209_daily_bin689.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/279341/ltcube_417916801_418176001_4FGL_J2222.8+1209_daily_bin689.fits
.....................!
real 190.20
user 184.86
sys 4.99

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/279341/ft1_filtered_4FGL_J2222.8+1209_daily_bin689.fits scfile=/scratch/kocevski/279341/ft2_4FGL_J2222.8+1209_daily_bin689.fits outfile=/scratch/kocevski/279341/cmap_417916801_418176001_4FGL_J2222.8+1209_daily_bin689.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279341/ft1_filtered_4FGL_J2222.8+1209_daily_bin689.fits scfile=/scratch/kocevski/279341/ft2_4FGL_J2222.8+1209_daily_bin689.fits outfile=/scratch/kocevski/279341/cmap_HighResolution_417916801_418176001_4FGL_J2222.8+1209_daily_bin689.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.71 yref=12.1568 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5864       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.851       1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1800       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.314       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.685       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .87895       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .59438E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15248E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3093       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.220       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .80202       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0689       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=   4826.391     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3176 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5861        3.7196       -.43786E-09   -.10933E-03
   2  Prefactor     .10000E-03    34.737        .34825E-05** at limit **
   3  Prefactor     30.931        50.505       -.45088E-05   -.13287E-04
   4  norm          .10000E-03    1.7626        .55397E-06** at limit **
   5  norm          3.1766        17.931       -.45027E-05   -.26055E-04
   6  Prefactor     .10000E-03    30.851        .77818E-06** at limit **
   7  Prefactor     .10000E-03    43.580       -.20471E-05** at limit **
   8  norm          .10000E-03    .84360        .72788E-07** at limit **
   9  Prefactor     .10000E-03    27.777       -.25155E-05** at limit **
  10  Prefactor     8.1477        52.313       -.94916E-06    .64223E-05
  11  Prefactor     47.326        49.754       -.52465E-06    .11465E-05
  12  norm          .10000E-03    5.0340        .34486E-06** at limit **
  13  Prefactor     21.689        23.308        .88822E-06   -.18765E-04
  14  Prefactor     .10000E-03    9.0353        .32564E-06** at limit **
  15  Prefactor     .87896        .38987       -.78074E-07    .84264E-04
  16  Prefactor     .10000E-03    5.3706        .90579E-07** at limit **
  17  norm          .10000E-03    22.291       -.93978E-05** at limit **
  18  Prefactor     .10001E-03    411.65       -.10922E-04** at limit **
  19  Prefactor     .10000E-03    8.0661        .11809E-06** at limit **
  20  Prefactor     .10000E-03    15.054       -.29693E-06** at limit **
  21  Prefactor     5.3094        .52454       -.70286E-07    .90618E-03
  22  Prefactor     .10000E-03    29.021       -.86247E-06** at limit **
  23  Prefactor     .10000E-03    4.2906        .14112E-06** at limit **
  24  Prefactor     12.222        18.952        .71233E-07    .58787E-05
  25  Normalizat    .80197        .35385       -.23319E-05   -.89113E-04
  26  Prefactor     1.0690        .17767       -.17355E-07   -.32479E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.58608
  Prefactor  = 0.0001
  Prefactor  = 30.9312
  norm       = 0.0001
  norm       = 3.17665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.14771
  Prefactor  = 47.3265
  norm       = 0.0001
  Prefactor  = 21.689
  Prefactor  = 0.0001
  Prefactor  = 0.87896
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.30936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.222
  Normalizat = 0.80197
  Prefactor  = 1.06896
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.391     FROM HESSE     STATUS=OK           458 CALLS     3634 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5861        3.7180        .90427E-04   -1.5157    
   2  Prefactor     .10000E-03    34.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.931        50.670        .72136E-04   -1.4595    
   4  norm          .10000E-03    3.1039        .17845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1766        17.991        .22725E-03   -1.5351    
   6  Prefactor     .10000E-03    30.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0289        .12256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1477        52.212        .14043E-03   -1.5137    
  11  Prefactor     47.326        49.720        .58293E-04   -1.4331    
  12  norm          .10000E-03    5.1287        .15225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.689        23.389        .86014E-04   -1.4776    
  14  Prefactor     .10000E-03    9.0618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .87896        .38676        .26247E-04   -1.5520    
  16  Prefactor     .10000E-03    5.3762        .15724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    21.480        .16985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    415.21        .20458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.3094        .52355        .14933E-04   -1.5247    
  22  Prefactor     .10000E-03    29.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.2972        .14056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.222        18.940        .11459E-03   -1.5009    
  25  Normalizat    .80197        .39690        .45432E-03   -.99996    
  26  Prefactor     1.0690        .20260        .21081E-03   -.90465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95992e-10
Minuit parameter uncertainties:
  1  3.71808
  2  5.0393e-05
  3  50.7407
  4  2.44879e-05
  5  15.1262
  6  2.58846e-05
  7  4.98345e-06
  8  3.75197e-05
  9  0.000119206
  10  41.3034
  11  49.7634
  12  1.14793e-05
  13  23.3991
  14  1.88576e-05
  15  0.386758
  16  8.6528e-06
  17  8.60326e-05
  18  0.00415688
  19  1.20414e-05
  20  2.0215e-05
  21  0.52355
  22  4.48347e-06
  23  7.97608e-06
  24  18.9494
  25  0.398341
  26  0.202746
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.169e+01  2.340e+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:  1.069e+00  2.027e-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.020e-01  3.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 335.710 12.157
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.24e-08 +/- 7.81e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 2.54e-05

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

Saving results to:
/scratch/kocevski/279341/likelihoodResults_417916801_418176001_4FGL_J2222.8+1209_daily_bin689.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) = 4826.24254218
delta logL = 0.148184669854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4826.23294454
delta logL = 0.157782307847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.068       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9063       1.0000          .0000       10.000    
     3 'Normalizat'    .75879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0841       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=   4826.233     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      283 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.061        29.337        .11532E-03   -.22833E-03
   2  Index         2.9072        1.2790        .57266E-02   -.49095E-04
   3  Normalizat    .75900        .39238        .46564E-03    .69583E-04
   4  Prefactor     1.0840        .20541        .20947E-03   -.13948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.061
  Index      = 2.90722
  Normalizat = 0.759004
  Prefactor  = 1.08399
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.233     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.061        21.937        .46126E-05   -1.5013    
   2  Index         2.9072        .96010        .22906E-03   -.43185    
   3  Normalizat    .75900        .38966        .18626E-04   -1.0161    
   4  Prefactor     1.0840        .20415        .83788E-05   -.89980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17181e-10
Minuit parameter uncertainties:
  1  21.9511
  2  0.967397
  3  0.391095
  4  0.204298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279341': 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): 0
logL (Free Index) = 4826.23294318
delta logL = 0.157783662741

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.084e+00  2.043e-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:  7.590e-01  3.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 335.710 12.157
Photon Index (Free Index): 2.91 +/- 0.97
Photon Flux (Free Index): 1.07e-07 +/- 1.06e-07
Energy Flux (Free Index): 2.24e-05 +/- 2.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/279341/cmap_HighResolution_417916801_418176001_4FGL_J2222.8+1209_daily_bin689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-02', comment='SUCCESS', photon_flux='7.24e-08', energy_flux2='2.24e-05', photon_flux_error='7.81e-08', dlogl='1.58e-01', energy_flux='2.35e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-28 10:30:41.191485', photon_index_error2='0.97', photon_index2='2.91', ts='1.39', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='2.43e-07', energy_flux_error2='2.07e-05', EG='0.80', time_epoch_completed='1632850241.19', return_code='0', job_id='279341', GAL2='1.08', EG2='0.76', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='1.06e-07', ts2='1.75', photon_index='2.41' WHERE bin_id='689' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:30:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 279341: <4FGL_J2222.8+1209_daily_bin689> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin689 335.71 12.1568 417916801 418176001 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 :                                   662.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            899 sec.

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

