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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin478
RA = 335.71, Dec = 12.1568
tmin = 363225601, tmax = 363484801
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='278022', job_status='RUN', time_executed='2021-09-28 10:14:33.734682', time_epoch_executed='1632849273.73' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278022/ft1_4FGL_J2222.8+1209_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278022/ft2_4FGL_J2222.8+1209_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278022/ft1_4FGL_J2222.8+1209_daily_bin478.fits outfile=/scratch/kocevski/278022/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin478.fits ra=335.71 dec=12.1568 rad=12.0 tmin=363225601.0 tmax=363484801.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.10
user 6.84
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278022/ft2_4FGL_J2222.8+1209_daily_bin478.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/278022/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin478.fits evtable="EVENTS" outfile="/scratch/kocevski/278022/ft1_filtered_4FGL_J2222.8+1209_daily_bin478.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278022/ft1_filtered_4FGL_J2222.8+1209_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/278022/ft2_4FGL_J2222.8+1209_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/278022/ltcube_363225601_363484801_4FGL_J2222.8+1209_daily_bin478.fits outfile=/scratch/kocevski/278022/expmap_363225601_363484801_4FGL_J2222.8+1209_daily_bin478.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/278022/ltcube_363225601_363484801_4FGL_J2222.8+1209_daily_bin478.fits
.....................!
real 190.24
user 185.47
sys 4.46

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/278022/ft1_filtered_4FGL_J2222.8+1209_daily_bin478.fits scfile=/scratch/kocevski/278022/ft2_4FGL_J2222.8+1209_daily_bin478.fits outfile=/scratch/kocevski/278022/cmap_363225601_363484801_4FGL_J2222.8+1209_daily_bin478.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278022/ft1_filtered_4FGL_J2222.8+1209_daily_bin478.fits scfile=/scratch/kocevski/278022/ft2_4FGL_J2222.8+1209_daily_bin478.fits outfile=/scratch/kocevski/278022/cmap_HighResolution_363225601_363484801_4FGL_J2222.8+1209_daily_bin478.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9826       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .20620E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4803       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .53072       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.061       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1237       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .81169       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5107       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4340       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .41166       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .74436E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0594       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77364       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=   4325.609     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3122 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9824        3.4456        .54951E-07    .74028E-04
   2  Prefactor     .10000E-03    441.20        .77721E-04** at limit **
   3  Prefactor     .10000E-03    36.701        .23194E-06** at limit **
   4  norm          .10001E-03    1.4645       -.61257E-06** at limit **
   5  norm          .10000E-03    10.681       -.68770E-07** at limit **
   6  Prefactor     6.4686        64.451        .44392E-05    .15944E-04
   7  Prefactor     .10000E-03    17.717       -.16769E-05** at limit **
   8  norm          .52987        1.0543       -.74912E-07   -.54419E-03
   9  Prefactor     38.056        27.685        .10680E-05    .64498E-04
  10  Prefactor     .10000E-03    24.084       -.26974E-05** at limit **
  11  Prefactor     .10000E-03    53.008        .10689E-05** at limit **
  12  norm          .10000E-03    4.0649        .30232E-07** at limit **
  13  Prefactor     1.8940        37.037        .13734E-04    .55264E-04
  14  Prefactor     1.1087        45.915        .37448E-04    .12420E-03
  15  Prefactor     .81160        .28664       -.26283E-07    .20544E-03
  16  Prefactor     8.5110        8.4236        .12541E-06    .80272E-05
  17  norm          3.4338        2.1487       -.40295E-07   -.27257E-04
  18  Prefactor     .10000E-03    22.602       -.26234E-06** at limit **
  19  Prefactor     .10000E-03    5.3138       -.62300E-08** at limit **
  20  Prefactor     .10000E-03    8.9822       -.11388E-06** at limit **
  21  Prefactor     .41172        .20713        .77779E-07   -.21292E-02
  22  Prefactor     .10000E-03    21.854        .95067E-06** at limit **
  23  Prefactor     .12069E-03    9.1038        .51891E-05** at limit **
  24  Prefactor     .10000E-03    19.104        .18364E-05** at limit **
  25  Normalizat    1.0597        .26558       -.50000E-05    .32027E-04
  26  Prefactor     .77351        .13313        .71641E-06   -.11578E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.98242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  norm       = 0.0001
  Prefactor  = 6.46858
  Prefactor  = 0.0001
  norm       = 0.529869
  Prefactor  = 38.0557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.894
  Prefactor  = 1.10871
  Prefactor  = 0.8116
  Prefactor  = 8.51096
  norm       = 3.43378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.411718
  Prefactor  = 0.0001
  Prefactor  = 0.00012069
  Prefactor  = 0.0001
  Normalizat = 1.05968
  Prefactor  = 0.773511
 **********
 **   18 **HESSE 
 **********

 FCN=   4325.609     FROM HESSE     STATUS=OK           464 CALLS     3586 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9824        3.4258        .91611E-04   -1.5262    
   2  Prefactor     .10000E-03    440.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    8.4679        .15171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.4686        63.139        .15766E-03   -1.5199    
   7  Prefactor     .10000E-03    17.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .52987        .94641        .89267E-03   -1.5562    
   9  Prefactor     38.056        27.754        .64966E-04   -1.4473    
  10  Prefactor     .10000E-03    24.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    53.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.1000        .12945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8940        37.338        .15110E-02   -1.5433    
  14  Prefactor     1.1087        46.244        .22115E-02   -1.5497    
  15  Prefactor     .81160        .28564        .19327E-04   -1.5528    
  16  Prefactor     8.5110        8.4275        .13741E-03   -1.5124    
  17  norm          3.4338        2.1507        .74291E-04   -1.5337    
  18  Prefactor     .10000E-03    22.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.3204        .14807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .41172        .20526        .19762E-04   -1.5580    
  22  Prefactor     .10000E-03    21.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .12069E-03    16.397        .58108E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0597        .31217        .30075E-03   -.91057    
  26  Prefactor     .77351        .15831        .18455E-03   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3874e-09
Minuit parameter uncertainties:
  1  3.42591
  2  0.000217334
  3  2.07576e-05
  4  0.00047089
  5  1.13971e-05
  6  40.4742
  7  2.98591e-05
  8  0.946438
  9  27.763
  10  6.49984e-05
  11  0.000175081
  12  1.89098e-05
  13  16.8304
  14  14.332
  15  0.285645
  16  8.42867
  17  2.15078
  18  4.5701e-05
  19  8.9454e-06
  20  1.58204e-05
  21  0.205262
  22  4.962e-06
  23  0.036847
  24  0.000113613
  25  0.312709
  26  0.1584
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.894e+00  1.683e+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:  7.735e-01  1.584e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.060e+00  3.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/278022/likelihoodResults_363225601_363484801_4FGL_J2222.8+1209_daily_bin478.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) = 4325.53886418
delta logL = 0.0700910472906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4325.53085288
delta logL = 0.0781023502304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5230       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3427       1.0000          .0000       10.000    
     3 'Normalizat'    1.0306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78146       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4325.531     FROM MIGRAD    STATUS=FAILED        88 CALLS      265 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5214        428.21        .18895E-03   -.11331E-02
   2  Index         3.3429        7.0172        .93255E-02   -.19993E-03
   3  Normalizat    1.0306        .29868        .30435E-03    .62345E-03
   4  Prefactor     .78147        .16119        .18364E-03    .11970E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4325.531     FROM SIMPLEX   STATUS=UNCHANGED     98 CALLS      363 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5214        428.21        .15766E-03   -.11331E-02
   2  Index         3.3429        7.0172        .10682E-02   -.19993E-03
   3  Normalizat    1.0306        .29868        .20032E-03    .62345E-03
   4  Prefactor     .78147        .16119        .87866E-04    .11970E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4325.531     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      393 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5212        10.321        .75581E-05   -.13889E-02
   2  Index         3.3429        2.2935        .37302E-03   -.17311E-03
   3  Normalizat    1.0306        .30482        .60871E-04    .59213E-03
   4  Prefactor     .78147        .15865        .36728E-04    .11475E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.52118
  Index      = 3.34293
  Normalizat = 1.03061
  Prefactor  = 0.781467
 **********
 **   18 **HESSE 
 **********

 FCN=   4325.531     FROM HESSE     STATUS=OK            23 CALLS      416 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5212        9.9168        .15116E-05   -1.5461    
   2  Index         3.3429        2.2520        .14921E-04   -.33780    
   3  Normalizat    1.0306        .30489        .12174E-04   -.92012    
   4  Prefactor     .78147        .15868        .73455E-05   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76988e-09
Minuit parameter uncertainties:
  1  7.76957
  2  2.34772
  3  0.305404
  4  0.15877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278022': 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) = 4325.53085285
delta logL = 0.0781023803002

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.521e+00  7.770e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  3.343e+00  2.348e+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:  7.815e-01  1.588e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.031e+00  3.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 335.710 12.157

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/278022/cmap_HighResolution_363225601_363484801_4FGL_J2222.8+1209_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-28 10:24:39.650347', job_id='278022', GAL2='0.78', fit_tolerance='1e-08', EG2='1.03', EG='1.06', time_epoch_completed='1632849879.65', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='7.81e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='478' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:24:39 PDT 2021


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

Job <4FGL_J2222.8+1209_daily_bin478> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:53 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:10:55 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:55 2021
Terminated at Tue Sep 28 10:24:40 2021
Results reported at Tue Sep 28 10:24:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin478 335.71 12.1568 363225601 363484801 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 :                                   604.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             242.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            827 sec.

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

