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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin633
RA = 335.71, Dec = 12.1568
tmin = 403401601, tmax = 403660801
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='279261', job_status='RUN', time_executed='2021-09-28 10:17:59.317369', time_epoch_executed='1632849479.32' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279261

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279261/ft1_4FGL_J2222.8+1209_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279261/ft2_4FGL_J2222.8+1209_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279261/ft1_4FGL_J2222.8+1209_daily_bin633.fits outfile=/scratch/kocevski/279261/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin633.fits ra=335.71 dec=12.1568 rad=12.0 tmin=403401601.0 tmax=403660801.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 4.01
user 3.72
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279261/ft1_filtered_4FGL_J2222.8+1209_daily_bin633.fits" evtable="EVENTS" scfile=/scratch/kocevski/279261/ft2_4FGL_J2222.8+1209_daily_bin633.fits sctable="SC_DATA" outfile=/scratch/kocevski/279261/ltcube_403401601_403660801_4FGL_J2222.8+1209_daily_bin633.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/279261/ft2_4FGL_J2222.8+1209_daily_bin633.fits
.....................!
real 12.39
user 12.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279261/ft1_filtered_4FGL_J2222.8+1209_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/279261/ft2_4FGL_J2222.8+1209_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/279261/ltcube_403401601_403660801_4FGL_J2222.8+1209_daily_bin633.fits outfile=/scratch/kocevski/279261/expmap_403401601_403660801_4FGL_J2222.8+1209_daily_bin633.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/279261/ltcube_403401601_403660801_4FGL_J2222.8+1209_daily_bin633.fits
.....................!
real 191.16
user 185.54
sys 5.31

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/279261/ft1_filtered_4FGL_J2222.8+1209_daily_bin633.fits scfile=/scratch/kocevski/279261/ft2_4FGL_J2222.8+1209_daily_bin633.fits outfile=/scratch/kocevski/279261/cmap_403401601_403660801_4FGL_J2222.8+1209_daily_bin633.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4608       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13721E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10317E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.3373       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .65926       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2214       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.418       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7604       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5184       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3568       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.116       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8226       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1812       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.680       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2476       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3942       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79951       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=   7766.650     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3132 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4605        2.3349        .66381E-08   -.92195E-05
   2  Prefactor     .10000E-03    58.267       -.65819E-06** at limit **
   3  Prefactor     .10000E-03    255.38       -.29994E-05** at limit **
   4  norm          .10000E-03    1.3509       -.32102E-06** at limit **
   5  norm          6.3282        21.144        .72425E-05    .38595E-04
   6  Prefactor     .10000E-03    27.421        .23634E-06** at limit **
   7  Prefactor     .10000E-03    15.851        .24658E-07** at limit **
   8  norm          .65922        .65464        .61840E-08    .22622E-05
   9  Prefactor     .10000E-03    7.9427        .86361E-07** at limit **
  10  Prefactor     .10000E-03    19.885        .56763E-07** at limit **
  11  Prefactor     7.2264        29.356       -.35815E-05   -.11563E-05
  12  norm          .10000E-03    1.2845       -.39834E-07** at limit **
  13  Prefactor     12.419        15.645        .63321E-06    .33669E-06
  14  Prefactor     4.7613        8.6868        .78082E-07   -.15343E-03
  15  Prefactor     1.5184        .29992       -.52675E-08    .79243E-04
  16  Prefactor     4.3566        6.5056        .32693E-06   -.42190E-05
  17  norm          .10000E-03    .49770        .15613E-07** at limit **
  18  Prefactor     12.116        15.528       -.14824E-07    .34281E-06
  19  Prefactor     2.8226        5.2324        .14313E-06   -.29950E-03
  20  Prefactor     .10000E-03    8.6626        .80839E-07** at limit **
  21  Prefactor     2.1812        .26758        .80097E-08   -.89523E-04
  22  Prefactor     10.680        42.881       -.57228E-08   -.69272E-06
  23  Prefactor     3.2471        7.4572       -.27129E-06   -.21926E-03
  24  Prefactor     .10000E-03    5.2644        .79573E-07** at limit **
  25  Normalizat    1.3939        .24096       -.58136E-06    .69006E-04
  26  Prefactor     .79963        .12063        .97056E-07    .46408E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.46047
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 6.32821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.659222
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.22639
  norm       = 0.0001
  Prefactor  = 12.4194
  Prefactor  = 4.76132
  Prefactor  = 1.51839
  Prefactor  = 4.35657
  norm       = 0.0001
  Prefactor  = 12.1161
  Prefactor  = 2.82262
  Prefactor  = 0.0001
  Prefactor  = 2.1812
  Prefactor  = 10.6801
  Prefactor  = 3.24705
  Prefactor  = 0.0001
  Normalizat = 1.39393
  Prefactor  = 0.799626
 **********
 **   18 **HESSE 
 **********

 FCN=   7766.650     FROM HESSE     STATUS=OK           462 CALLS     3594 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4605        2.3333        .10653E-03   -1.5336    
   2  Prefactor     .10000E-03    58.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    259.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6801        .19812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3282        21.277        .15945E-03   -1.5205    
   6  Prefactor     .10000E-03    27.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .65922        .63311        .68693E-03   -1.5546    
   9  Prefactor     .10000E-03    7.9478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2264        29.500        .14926E-03   -1.5170    
  12  norm          .10000E-03    1.2875        .97531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.419        15.706        .11367E-03   -1.5003    
  14  Prefactor     4.7613        9.3156        .92204E-03   -1.5272    
  15  Prefactor     1.5184        .30168        .19689E-04   -1.5462    
  16  Prefactor     4.3566        6.5023        .19297E-03   -1.5290    
  17  norm          .10000E-03    .50101        .60705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.116        15.531        .11508E-03   -1.5012    
  19  Prefactor     2.8226        7.0521        .12104E-02   -1.5372    
  20  Prefactor     .10000E-03    8.6717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1812        .27049        .15041E-04   -1.5413    
  22  Prefactor     10.680        43.023        .12260E-03   -1.5054    
  23  Prefactor     3.2471        9.8814        .11237E-02   -1.5348    
  24  Prefactor     .10000E-03    5.2756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3939        .28825        .33101E-03   -.80804    
  26  Prefactor     .79963        .14326        .22089E-03   -.99742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21323e-10
Minuit parameter uncertainties:
  1  2.33334
  2  1.25549e-05
  3  0.00142929
  4  6.42623e-05
  5  21.3028
  6  5.97894e-06
  7  1.04047e-06
  8  0.633121
  9  1.76823e-06
  10  3.51468e-06
  11  29.2259
  12  2.4235e-07
  13  15.7113
  14  9.31845
  15  0.301679
  16  6.50334
  17  5.03439e-08
  18  15.5363
  19  7.05414
  20  5.8356e-07
  21  0.270495
  22  42.925
  23  9.88638
  24  1.39808e-06
  25  0.288582
  26  0.143324
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.242e+01  1.571e+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.996e-01  1.433e-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.394e+00  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/279261/likelihoodResults_403401601_403660801_4FGL_J2222.8+1209_daily_bin633.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) = 7765.10732634
delta logL = 1.54244424177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7765.04002868
delta logL = 1.60974189535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0267       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1865       1.0000          .0000       10.000    
     3 'Normalizat'    1.2798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83893       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=   7765.040     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      260 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0241        7.2420        .10811E-01    .23765E-02
   2  Index         4.1874        1.9193        .95658E-01    .38934E-03
   3  Normalizat    1.2800        .63522E-01    .77261E-01   -.37492E-04
   4  Prefactor     .83886        .33260E-01    .44222E-01    .50947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.02413
  Index      = 4.1874
  Normalizat = 1.28
  Prefactor  = 0.838859
 **********
 **   18 **HESSE 
 **********

 FCN=   7765.040     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0241        16.347        .48905E-04   -1.5506    
   2  Index         4.1874        3.2603        .36290E-02   -.16324    
   3  Normalizat    1.2800        .25133        .34196E-03   -.84165    
   4  Prefactor     .83886        .13078        .21600E-03   -.98311    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.1048e-10
Minuit parameter uncertainties:
  1  8.18537
  2  3.56169
  3  0.251569
  4  0.13083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279261': 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) = 7765.04002778
delta logL = 1.60974280323

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.024e+00  8.185e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  4.187e+00  3.562e+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:  8.389e-01  1.308e-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.280e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.36
Ra Dec: 335.710 12.157
Photon Index (Free Index): 4.19 +/- 3.56
Photon Flux (Free Index): 1.43e-07 +/- 8.00e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.56e-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/279261/cmap_HighResolution_403401601_403660801_4FGL_J2222.8+1209_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', energy_flux2='2.09e-05', dlogl='1.61e+00', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-28 10:31:50.291275', photon_index_error2='3.56', photon_index2='4.19', ts='0.91', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.56e-05', EG='1.39', time_epoch_completed='1632850310.29', return_code='0', job_id='279261', GAL2='0.84', EG2='1.28', return_code2='102', photon_flux_error2='8.00e-08', ts2='4.36', photon_index='2.41' WHERE bin_id='633' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 279261: <4FGL_J2222.8+1209_daily_bin633> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin633> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Sep 28 10:15:33 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:15:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:15:35 2021
Terminated at Tue Sep 28 10:31:51 2021
Results reported at Tue Sep 28 10:31:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin633 335.71 12.1568 403401601 403660801 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 :                                   831.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            978 sec.

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

