/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 77 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 = 7402
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin47
RA = 335.71, Dec = 12.1568
tmin = 251510401, tmax = 251769601
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='276465', job_status='RUN', time_executed='2021-09-28 10:07:24.116889', time_epoch_executed='1632848844.12' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276465

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276465/ft1_4FGL_J2222.8+1209_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276465/ft2_4FGL_J2222.8+1209_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276465/ft1_4FGL_J2222.8+1209_daily_bin47.fits outfile=/scratch/kocevski/276465/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin47.fits ra=335.71 dec=12.1568 rad=12.0 tmin=251510401.0 tmax=251769601.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.48
user 1.31
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276465/ft1_filtered_4FGL_J2222.8+1209_daily_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/276465/ft2_4FGL_J2222.8+1209_daily_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/276465/ltcube_251510401_251769601_4FGL_J2222.8+1209_daily_bin47.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/276465/ft2_4FGL_J2222.8+1209_daily_bin47.fits
.....................!
real 14.22
user 13.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276465/ft1_filtered_4FGL_J2222.8+1209_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/276465/ft2_4FGL_J2222.8+1209_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/276465/ltcube_251510401_251769601_4FGL_J2222.8+1209_daily_bin47.fits outfile=/scratch/kocevski/276465/expmap_251510401_251769601_4FGL_J2222.8+1209_daily_bin47.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/276465/ltcube_251510401_251769601_4FGL_J2222.8+1209_daily_bin47.fits
.....................!
real 190.57
user 185.26
sys 4.67

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/276465/ft1_filtered_4FGL_J2222.8+1209_daily_bin47.fits scfile=/scratch/kocevski/276465/ft2_4FGL_J2222.8+1209_daily_bin47.fits outfile=/scratch/kocevski/276465/cmap_251510401_251769601_4FGL_J2222.8+1209_daily_bin47.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.14

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7071       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.854       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.383       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5274       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8484       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.063       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.096       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32179       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2489       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5321       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.737       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.566       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7926       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1412       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .49736       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2402       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=   8948.668     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3133 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7094        2.5140        .12512E-05   -.65495E-03
   2  Prefactor     .10000E-03    73.186       -.99690E-06** at limit **
   3  Prefactor     .10000E-03    16.311       -.11887E-07** at limit **
   4  norm          15.853        3.4051       -.82426E-07   -.71232E-04
   5  norm          .10000E-03    4.7221       -.28289E-07** at limit **
   6  Prefactor     20.354        29.442       -.16658E-04   -.34788E-04
   7  Prefactor     .10000E-03    49.276       -.43457E-05** at limit **
   8  norm          1.5277        1.0101        .10926E-06   -.31844E-03
   9  Prefactor     7.8468        16.837       -.50693E-06   -.53209E-04
  10  Prefactor     28.060        27.747       -.18438E-05   -.14960E-04
  11  Prefactor     .10000E-03    68.430        .89594E-05** at limit **
  12  norm          .10000E-03    3.1902       -.25559E-07** at limit **
  13  Prefactor     10.096        11.641       -.36981E-06   -.53463E-04
  14  Prefactor     .10000E-03    3.7944       -.23370E-07** at limit **
  15  Prefactor     .32178        .18172       -.26837E-07   -.11872E-02
  16  Prefactor     9.2490        9.6967       -.23493E-06   -.80340E-04
  17  norm          2.5321        1.5424        .82624E-08    .15863E-03
  18  Prefactor     36.732        32.524       -.29900E-05    .24980E-05
  19  Prefactor     .10000E-03    8.9151       -.99298E-07** at limit **
  20  Prefactor     11.556        18.068       -.11262E-05   -.40564E-03
  21  Prefactor     2.7925        .29126        .22968E-07   -.41188E-04
  22  Prefactor     .10000E-03    22.774        .44699E-06** at limit **
  23  Prefactor     2.1394        7.5024       -.27613E-05   -.43922E-03
  24  Prefactor     .10000E-03    6.3097       -.94164E-07** at limit **
  25  Normalizat    .49749        .26618        .14772E-05   -.46501E-04
  26  Prefactor     1.2402        .14097        .62808E-06   -.12471E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.853
  norm       = 0.0001
  Prefactor  = 20.354
  Prefactor  = 0.0001
  norm       = 1.52768
  Prefactor  = 7.84683
  Prefactor  = 28.0603
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0955
  Prefactor  = 0.0001
  Prefactor  = 0.321775
  Prefactor  = 9.24901
  norm       = 2.5321
  Prefactor  = 36.732
  Prefactor  = 0.0001
  Prefactor  = 11.5562
  Prefactor  = 2.79254
  Prefactor  = 0.0001
  Prefactor  = 2.13942
  Prefactor  = 0.0001
  Normalizat = 0.49749
  Prefactor  = 1.24015
 **********
 **   18 **HESSE 
 **********

 FCN=   8948.668     FROM HESSE     STATUS=OK           462 CALLS     3595 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7094        2.4488        .16227E-03   -1.5446    
   2  Prefactor     .10000E-03    73.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.853        3.3957        .77109E-04   -1.4911    
   5  norm          .10000E-03    4.7270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.354        28.656        .88716E-04   -1.4805    
   7  Prefactor     .10000E-03    49.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5277        .99932        .73223E-04   -1.5461    
   9  Prefactor     7.8468        16.812        .14313E-03   -1.5148    
  10  Prefactor     28.060        27.663        .75626E-04   -1.4648    
  11  Prefactor     .10000E-03    68.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.2568        .16493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.096        11.591        .12611E-03   -1.5072    
  14  Prefactor     .10000E-03    3.8086        .17993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .32178        .17911        .27786E-04   -1.5595    
  16  Prefactor     9.2490        9.6996        .13178E-03   -1.5100    
  17  norm          2.5321        1.5461        .89340E-04   -1.5390    
  18  Prefactor     36.732        32.562        .66123E-04   -1.4495    
  19  Prefactor     .10000E-03    8.9960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.556        18.225        .58899E-03   -1.5028    
  21  Prefactor     2.7925        .29200        .15261E-04   -1.5374    
  22  Prefactor     .10000E-03    22.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.1394        7.6307        .28167E-03   -1.5415    
  24  Prefactor     .10000E-03    6.3364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .49749        .26663        .51874E-03   -1.1253    
  26  Prefactor     1.2402        .14547        .18897E-03   -.85105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15108e-09
Minuit parameter uncertainties:
  1  2.44895
  2  5.29814e-06
  3  3.19876e-06
  4  3.39571
  5  1.75713e-06
  6  28.6751
  7  0.000134795
  8  0.999332
  9  16.8218
  10  27.6759
  11  0.000217654
  12  5.73977e-06
  13  11.5937
  14  3.03388e-06
  15  0.179107
  16  9.7012
  17  1.54616
  18  32.5778
  19  1.33973e-05
  20  18.234
  21  0.291996
  22  1.71108e-05
  23  7.63414
  24  1.76492e-06
  25  0.267318
  26  0.145514
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.010e+01  1.159e+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.240e+00  1.455e-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:  4.975e-01  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 335.710 12.157
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.26e-05

TS (Fixed Index): 1.22
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276465/likelihoodResults_251510401_251769601_4FGL_J2222.8+1209_daily_bin47.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) = 8948.61685543
delta logL = 0.0509331172016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8948.61286457
delta logL = 0.0549239798893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7512       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7601       1.0000          .0000       10.000    
     3 'Normalizat'    .48116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2461       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8948.613     FROM MIGRAD    STATUS=FAILED       107 CALLS      333 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7733        24.788        .77213E-03   -.36692E-04
   2  Index         2.7599        2.0725        .83361E-02    .60140E-03
   3  Normalizat    .48030        .27247        .52754E-03   -.19956E-04
   4  Prefactor     1.2465        .14845        .18856E-03   -.71265E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8948.613     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      406 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7733        24.788        .16080E-03   -1.5187    
   2  Index         2.7599        2.0725        .10054E-02   -.46455    
   3  Normalizat    .48030        .27247        .29359E-03   -1.1334    
   4  Prefactor     1.2465        .14845        .11592E-03   -.84913    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8948.613     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      446 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7733        13.869        .30885E-04   -.33129E-04
   2  Index         2.7599        1.1886        .16672E-02   -.29867E-05
   3  Normalizat    .48030        .26363        .21102E-04   -.10344E-04
   4  Prefactor     1.2465        .14501        .75424E-05   -.36175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77327
  Index      = 2.7599
  Normalizat = 0.480295
  Prefactor  = 1.24646
 **********
 **   18 **HESSE 
 **********

 FCN=   8948.613     FROM HESSE     STATUS=OK            23 CALLS      469 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7733        13.127        .12354E-05   -1.5187    
   2  Index         2.7599        1.1260        .66689E-04   -.46455    
   3  Normalizat    .48030        .26274        .42203E-05   -1.1334    
   4  Prefactor     1.2465        .14462        .15085E-05   -.84913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42241e-12
Minuit parameter uncertainties:
  1  13.1329
  2  1.13823
  3  0.263417
  4  0.144663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276465': 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) = 8948.612856
delta logL = 0.0549325508946

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  6.773e+00  1.313e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.760e+00  1.138e+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.246e+00  1.447e-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:  4.803e-01  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 335.710 12.157
Photon Index (Free Index): 2.76 +/- 1.14
Photon Flux (Free Index): 4.46e-08 +/- 5.41e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.08e-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/276465/cmap_HighResolution_251510401_251769601_4FGL_J2222.8+1209_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.51e-03', comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='1.03e-05', photon_flux_error='3.87e-08', dlogl='5.49e-02', energy_flux='1.09e-05', photon_flux2='4.46e-08', job_status='DONE', time_completed='2021-09-28 10:22:32.606544', photon_index_error2='1.14', photon_index2='2.76', ts='1.22', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.08e-05', EG='0.50', time_epoch_completed='1632849752.61', return_code='0', job_id='276465', GAL2='1.25', EG2='0.48', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='5.41e-08', ts2='1.34', photon_index='2.41' WHERE bin_id='47' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:22:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 276465: <4FGL_J2222.8+1209_daily_bin47> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin47> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:05:58 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:05:59 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:05:59 2021
Terminated at Tue Sep 28 10:22:33 2021
Results reported at Tue Sep 28 10:22:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin47 335.71 12.1568 251510401 251769601 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 :                                   908.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

