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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin382
RA = 335.71, Dec = 12.1568
tmin = 338342401, tmax = 338601601
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='277882', job_status='RUN', time_executed='2021-09-28 10:11:01.372916', time_epoch_executed='1632849061.37' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277882

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277882/ft1_4FGL_J2222.8+1209_daily_bin382.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277882/ft2_4FGL_J2222.8+1209_daily_bin382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277882/ft1_4FGL_J2222.8+1209_daily_bin382.fits outfile=/scratch/kocevski/277882/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin382.fits ra=335.71 dec=12.1568 rad=12.0 tmin=338342401.0 tmax=338601601.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 6.60
user 6.30
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/277882/ft2_4FGL_J2222.8+1209_daily_bin382.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/277882/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin382.fits evtable="EVENTS" outfile="/scratch/kocevski/277882/ft1_filtered_4FGL_J2222.8+1209_daily_bin382.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/277882/ft1_filtered_4FGL_J2222.8+1209_daily_bin382.fits" evtable="EVENTS" scfile=/scratch/kocevski/277882/ft2_4FGL_J2222.8+1209_daily_bin382.fits sctable="SC_DATA" outfile=/scratch/kocevski/277882/ltcube_338342401_338601601_4FGL_J2222.8+1209_daily_bin382.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/277882/ft2_4FGL_J2222.8+1209_daily_bin382.fits
.....................!
real 11.59
user 11.20
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277882/ft1_filtered_4FGL_J2222.8+1209_daily_bin382.fits evtable="EVENTS" scfile=/scratch/kocevski/277882/ft2_4FGL_J2222.8+1209_daily_bin382.fits sctable="SC_DATA" expcube=/scratch/kocevski/277882/ltcube_338342401_338601601_4FGL_J2222.8+1209_daily_bin382.fits outfile=/scratch/kocevski/277882/expmap_338342401_338601601_4FGL_J2222.8+1209_daily_bin382.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/277882/ltcube_338342401_338601601_4FGL_J2222.8+1209_daily_bin382.fits
.....................!
real 192.29
user 185.71
sys 5.27

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/277882/ft1_filtered_4FGL_J2222.8+1209_daily_bin382.fits scfile=/scratch/kocevski/277882/ft2_4FGL_J2222.8+1209_daily_bin382.fits outfile=/scratch/kocevski/277882/cmap_338342401_338601601_4FGL_J2222.8+1209_daily_bin382.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277882/ft1_filtered_4FGL_J2222.8+1209_daily_bin382.fits scfile=/scratch/kocevski/277882/ft2_4FGL_J2222.8+1209_daily_bin382.fits outfile=/scratch/kocevski/277882/cmap_HighResolution_338342401_338601601_4FGL_J2222.8+1209_daily_bin382.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11170       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12291E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.7786       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.588       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3651       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.900       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.861       1.0000         .10000E-03   10000.    
    12 'norm      '    7.5516       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36034       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.180       1.0000         .10000E-03   10000.    
    17 'norm      '    .16782E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8704       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21971E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.9022       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2112       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75208       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=   6522.620     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3142 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10775        1.2198       -.76577E-06    .27436E-03
   2  Prefactor     .10000E-03    42.070        .11567E-06** at limit **
   3  Prefactor     .10000E-03    137.43        .94702E-06** at limit **
   4  norm          8.7773        3.2496       -.28453E-07   -.50434E-04
   5  norm          .10000E-03    4.9278        .18146E-05** at limit **
   6  Prefactor     46.605        33.533        .56955E-05   -.15685E-03
   7  Prefactor     9.3634        39.301       -.40822E-05    .23783E-04
   8  norm          .10000E-03    .48014       -.24320E-07** at limit **
   9  Prefactor     19.897        19.755        .13493E-05   -.96937E-04
  10  Prefactor     .10000E-03    4.8827       -.17961E-05** at limit **
  11  Prefactor     14.858        25.647        .54717E-06   -.29147E-04
  12  norm          7.5514        6.0731       -.11214E-06   -.73730E-04
  13  Prefactor     .10000E-03    5.6345       -.31255E-06** at limit **
  14  Prefactor     .10000E-03    6.4319        .97586E-07** at limit **
  15  Prefactor     .36034        .22605       -.14307E-08   -.88806E-03
  16  Prefactor     18.180        8.7018       -.64159E-08    .35620E-04
  17  norm          .10000E-03    .97509        .35684E-07** at limit **
  18  Prefactor     .10000E-03    10.347       -.24247E-06** at limit **
  19  Prefactor     .10000E-03    11.387        .40442E-06** at limit **
  20  Prefactor     1.8654        17.646       -.50549E-05   -.83697E-04
  21  Prefactor     .21958E-01    .69998E-01   -.61635E-07   -.25353E-02
  22  Prefactor     .10000E-03    14.106       -.96966E-07** at limit **
  23  Prefactor     .10000E-03    4.2688        .57570E-07** at limit **
  24  Prefactor     8.9016        17.803        .64861E-06   -.31823E-04
  25  Normalizat    1.2112        .22213        .72275E-07    .13152E-03
  26  Prefactor     .75212        .11165       -.23071E-06    .23130E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.10775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.77728
  norm       = 0.0001
  Prefactor  = 46.6055
  Prefactor  = 9.36341
  norm       = 0.0001
  Prefactor  = 19.8971
  Prefactor  = 0.0001
  Prefactor  = 14.8579
  norm       = 7.55143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.360342
  Prefactor  = 18.1799
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86538
  Prefactor  = 0.0219585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.9016
  Normalizat = 1.21116
  Prefactor  = 0.752119
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.620     FROM HESSE     STATUS=OK           460 CALLS     3602 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10775        13.281        .16605E-02   -1.5642    
   2  Prefactor     .10000E-03    42.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    139.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.7773        3.2530        .84327E-04   -1.5115    
   5  norm          .10000E-03    4.9007        .17457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.605        33.531        .58744E-04   -1.4342    
   7  Prefactor     9.3634        39.389        .13096E-03   -1.5096    
   8  norm          .10000E-03    .50099        .10906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.897        19.680        .89785E-04   -1.4816    
  10  Prefactor     .10000E-03    4.8574        .17384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.858        25.628        .10390E-03   -1.4937    
  12  norm          7.5514        6.0800        .14594E-03   -1.5158    
  13  Prefactor     .10000E-03    5.6442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .36034        .22080        .28084E-04   -1.5588    
  16  Prefactor     18.180        8.7066        .93934E-04   -1.4855    
  17  norm          .10000E-03    3.9088        .15432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8654        18.394        .30455E-03   -1.5435    
  21  Prefactor     .21958E-01    .87423E-01    .36135E-03   -1.5678    
  22  Prefactor     .10000E-03    14.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.2948        .16292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.9016        17.818        .13434E-03   -1.5111    
  25  Normalizat    1.2112        .26142        .29836E-03   -.86259    
  26  Prefactor     .75212        .13318        .19209E-03   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06358e-09
Minuit parameter uncertainties:
  1  2.39198
  2  6.50085e-06
  3  0.000197529
  4  3.25308
  5  5.15727e-05
  6  33.545
  7  38.4524
  8  2.60295e-06
  9  19.6867
  10  4.91231e-05
  11  25.6466
  12  6.08051
  13  1.02833e-05
  14  2.02439e-06
  15  0.220805
  16  8.70718
  17  3.46327e-07
  18  1.91985e-05
  19  1.27067e-05
  20  11.7198
  21  0.0874231
  22  5.11044e-06
  23  3.97278e-06
  24  17.829
  25  0.261698
  26  0.133238
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  7.521e-01  1.332e-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.211e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277882/likelihoodResults_338342401_338601601_4FGL_J2222.8+1209_daily_bin382.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) = 6522.6212066
delta logL = -0.000843641420943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6522.62036301
delta logL = -5.14855855727e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4098       1.0000          .0000       10.000    
     3 'Normalizat'    1.2111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75214       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=   6522.620     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    394.95        .90712E-02** at limit **
   2  Index         2.4127        5.2234        .50000       -.49247E-05
   3  Normalizat    1.2112        .50533E-01    .67438E-01    .17778E-04
   4  Prefactor     .75212        .26396E-01    .43091E-01    .19600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41269
  Normalizat = 1.21116
  Prefactor  = 0.752118
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.620     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    607.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4127        8.7918        .50000       -.54388    
   3  Normalizat    1.2112        .67138E-01    .29836E-03   -.86259    
   4  Prefactor     .75212        .35122E-01    .19209E-03   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43208e-09
Minuit parameter uncertainties:
  1  2.66042e-05
  2  44.8842
  3  0.0671432
  4  0.0351226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277882': 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) = 6522.62036295
delta logL = 6.21821527602e-09

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.660e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.413e+00  4.488e+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:  7.521e-01  3.512e-02  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.211e+00  6.714e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/277882/cmap_HighResolution_338342401_338601601_4FGL_J2222.8+1209_daily_bin382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-09-28 10:23:06.011979', job_id='277882', GAL2='0.75', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632849786.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='6.22e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='382' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:23:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 277882: <4FGL_J2222.8+1209_daily_bin382> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin382> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:42 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:10:44 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:44 2021
Terminated at Tue Sep 28 10:23:06 2021
Results reported at Tue Sep 28 10:23:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin382 335.71 12.1568 338342401 338601601 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 :                                   719.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

