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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin443
RA = 335.71, Dec = 12.1568
tmin = 354153601, tmax = 354412801
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='277971', job_status='RUN', time_executed='2021-09-28 10:13:39.945912', time_epoch_executed='1632849219.95' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277971/ft1_4FGL_J2222.8+1209_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277971/ft2_4FGL_J2222.8+1209_daily_bin443.fits


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

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

Done.
real 3.94
user 3.72
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277971/ft1_filtered_4FGL_J2222.8+1209_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/277971/ft2_4FGL_J2222.8+1209_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/277971/ltcube_354153601_354412801_4FGL_J2222.8+1209_daily_bin443.fits outfile=/scratch/kocevski/277971/expmap_354153601_354412801_4FGL_J2222.8+1209_daily_bin443.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/277971/ltcube_354153601_354412801_4FGL_J2222.8+1209_daily_bin443.fits
.....................!
real 190.10
user 184.98
sys 4.81

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/277971/ft1_filtered_4FGL_J2222.8+1209_daily_bin443.fits scfile=/scratch/kocevski/277971/ft2_4FGL_J2222.8+1209_daily_bin443.fits outfile=/scratch/kocevski/277971/cmap_354153601_354412801_4FGL_J2222.8+1209_daily_bin443.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 2.06
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9109       1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.229       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.350       1.0000         .10000E-03   10000.    
     4 'norm      '    .11370E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10527E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.586       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2465       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .41271       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40356E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3086       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.225       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.372       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0479       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97682       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95994       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=   6930.626     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3096 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9112        2.8186        .18520E-07    .15277E-03
   2  Prefactor     37.213        46.070        .21274E-05    .21409E-03
   3  Prefactor     11.207        114.56       -.11008E-05    .94184E-05
   4  norm          .10000E-03    1.2867       -.18393E-05** at limit **
   5  norm          .10001E-03    14.182       -.59297E-05** at limit **
   6  Prefactor     23.589        24.664       -.21727E-06   -.43051E-05
   7  Prefactor     .10000E-03    16.498        .16559E-06** at limit **
   8  norm          .10000E-03    .24305        .16324E-06** at limit **
   9  Prefactor     .10000E-03    29.053       -.32235E-05** at limit **
  10  Prefactor     .10000E-03    16.644       -.64860E-06** at limit **
  11  Prefactor     .10000E-03    76.966        .66394E-07** at limit **
  12  norm          .10000E-03    1.9546        .31313E-06** at limit **
  13  Prefactor     4.2470        10.324        .32787E-06    .10837E-03
  14  Prefactor     .10000E-03    9.7820        .98432E-06** at limit **
  15  Prefactor     .41263        .20369       -.38360E-07    .18908E-02
  16  Prefactor     .10054E-03    7.2133       -.31957E-05** at limit **
  17  norm          1.3089        1.3385        .81787E-07    .20352E-03
  18  Prefactor     17.224        21.156       -.64634E-06   -.10586E-03
  19  Prefactor     .10000E-03    2.8566        .12431E-06** at limit **
  20  Prefactor     .10000E-03    50.722        .95430E-06** at limit **
  21  Prefactor     .10000E-03    .33138E-01    .93418E-07** at limit **
  22  Prefactor     .10000E-03    100.58        .14828E-05** at limit **
  23  Prefactor     15.372        8.7524       -.32765E-06   -.21351E-03
  24  Prefactor     4.0467        13.360        .35713E-08    .23326E-04
  25  Normalizat    .97664        .21795        .41561E-05    .43370E-03
  26  Prefactor     .95997        .11712       -.17068E-05    .81905E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.91115
  Prefactor  = 37.213
  Prefactor  = 11.2068
  norm       = 0.0001
  norm       = 0.000100009
  Prefactor  = 23.5889
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.24704
  Prefactor  = 0.0001
  Prefactor  = 0.412632
  Prefactor  = 0.000100544
  norm       = 1.30886
  Prefactor  = 17.2239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3722
  Prefactor  = 4.04668
  Normalizat = 0.976639
  Prefactor  = 0.959967
 **********
 **   18 **HESSE 
 **********

 FCN=   6930.626     FROM HESSE     STATUS=OK           456 CALLS     3552 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9112        2.8168        .90363E-04   -1.5222    
   2  Prefactor     37.213        46.426        .32843E-03   -1.4487    
   3  Prefactor     11.207        115.58        .11891E-03   -1.5038    
   4  norm          .10000E-03    1.7371        .16206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    14.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.589        24.665        .82479E-04   -1.4736    
   7  Prefactor     .10000E-03    16.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .24935        .80054E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    77.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9654        .11363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2470        10.296        .19553E-03   -1.5296    
  14  Prefactor     .10000E-03    9.9318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .41263        .19821        .24400E-04   -1.5580    
  16  Prefactor     .10054E-03    37.557        .35240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3089        1.3139        .94749E-04   -1.5479    
  18  Prefactor     17.224        21.125        .96502E-04   -1.4878    
  19  Prefactor     .10000E-03    2.8610        .13741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    51.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .40101E-01    .29119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    101.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.372        8.7549        .10215E-03   -1.4924    
  24  Prefactor     4.0467        13.356        .20042E-03   -1.5306    
  25  Normalizat    .97664        .25146        .32338E-03   -.93817    
  26  Prefactor     .95997        .13529        .17813E-03   -.94076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48376e-08
Minuit parameter uncertainties:
  1  2.81684
  2  46.4714
  3  72.1606
  4  2.21776e-05
  5  0.000745586
  6  24.6752
  7  1.4396e-05
  8  2.19218e-06
  9  0.000566741
  10  9.39028e-05
  11  0.0001136
  12  1.20846e-05
  13  10.3002
  14  8.29564e-05
  15  0.198212
  16  0.00904495
  17  1.31388
  18  21.1342
  19  5.62212e-06
  20  0.000128584
  21  2.6438e-07
  22  0.000358896
  23  8.75559
  24  13.3662
  25  0.251762
  26  0.135338
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.600e-01  1.353e-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:  9.766e-01  2.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/277971/likelihoodResults_354153601_354412801_4FGL_J2222.8+1209_daily_bin443.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) = 6930.60347377
delta logL = 0.0221368211323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6930.58739456
delta logL = 0.0382160249728

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4464       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9243       1.0000          .0000       10.000    
     3 'Normalizat'    .96617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96346       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=   6930.587     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4451        21.066        .25160E-03   -.76891E-03
   2  Index         2.9243        2.9103        .93330E-02   -.18773E-03
   3  Normalizat    .96616        .25236        .32493E-03    .74830E-03
   4  Prefactor     .96347        .13655        .17784E-03    .14026E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.44508
  Index      = 2.92427
  Normalizat = 0.966156
  Prefactor  = 0.96347
 **********
 **   18 **HESSE 
 **********

 FCN=   6930.587     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4451        8.7680        .10064E-04   -1.5395    
   2  Index         2.9243        1.8693        .37332E-03   -.42810    
   3  Normalizat    .96616        .25010        .64985E-04   -.94173    
   4  Prefactor     .96347        .13562        .35567E-04   -.93957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4361e-09
Minuit parameter uncertainties:
  1  8.77262
  2  1.92639
  3  0.250398
  4  0.135669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277971': 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) = 6930.58739452
delta logL = 0.0382160677773

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.445e+00  8.773e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.924e+00  1.926e+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:  9.635e-01  1.357e-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:  9.662e-01  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/277971/cmap_HighResolution_354153601_354412801_4FGL_J2222.8+1209_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.18e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-28 10:25:50.091042', job_id='277971', GAL2='0.96', fit_tolerance='1e-08', EG2='0.97', EG='0.98', time_epoch_completed='1632849950.09', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.82e-02', ts2='0.30', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='443' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:25:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 277971: <4FGL_J2222.8+1209_daily_bin443> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin443 335.71 12.1568 354153601 354412801 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 :                                   728.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

