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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin753
RA = 335.71, Dec = 12.1568
tmin = 434505601, tmax = 434764801
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='279433', job_status='RUN', time_executed='2021-09-28 10:17:56.829117', time_epoch_executed='1632849476.83' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279433

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279433/ft1_4FGL_J2222.8+1209_daily_bin753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279433/ft2_4FGL_J2222.8+1209_daily_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279433/ft1_4FGL_J2222.8+1209_daily_bin753.fits outfile=/scratch/kocevski/279433/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin753.fits ra=335.71 dec=12.1568 rad=12.0 tmin=434505601.0 tmax=434764801.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 5.91
user 5.64
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279433/ft1_filtered_4FGL_J2222.8+1209_daily_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/279433/ft2_4FGL_J2222.8+1209_daily_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/279433/ltcube_434505601_434764801_4FGL_J2222.8+1209_daily_bin753.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/279433/ft2_4FGL_J2222.8+1209_daily_bin753.fits
.....................!
real 12.71
user 12.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279433/ft1_filtered_4FGL_J2222.8+1209_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/279433/ft2_4FGL_J2222.8+1209_daily_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/279433/ltcube_434505601_434764801_4FGL_J2222.8+1209_daily_bin753.fits outfile=/scratch/kocevski/279433/expmap_434505601_434764801_4FGL_J2222.8+1209_daily_bin753.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/279433/ltcube_434505601_434764801_4FGL_J2222.8+1209_daily_bin753.fits
.....................!
real 190.61
user 185.20
sys 5.10

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/279433/ft1_filtered_4FGL_J2222.8+1209_daily_bin753.fits scfile=/scratch/kocevski/279433/ft2_4FGL_J2222.8+1209_daily_bin753.fits outfile=/scratch/kocevski/279433/cmap_434505601_434764801_4FGL_J2222.8+1209_daily_bin753.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279433/ft1_filtered_4FGL_J2222.8+1209_daily_bin753.fits scfile=/scratch/kocevski/279433/ft2_4FGL_J2222.8+1209_daily_bin753.fits outfile=/scratch/kocevski/279433/cmap_HighResolution_434505601_434764801_4FGL_J2222.8+1209_daily_bin753.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/279433/ft1_filtered_4FGL_J2222.8+1209_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/279433/ft2_4FGL_J2222.8+1209_daily_bin753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279433/Model_4FGL_J2222.8+1209_daily_bin753.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/279433/ft1_filtered_4FGL_J2222.8+1209_daily_bin753.fits.....................!
real 49.07
user 47.70
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5968       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.237       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.9431       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    142.47       1.0000         .10000E-03   10000.    
     8 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16190E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.6454       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.222       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3713       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7936       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.059       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8316       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11200E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2954       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7140       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.9160       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .56345       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=   4059.396     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3131 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5969        5.1927       -.71774E-06   -.19955E-02
   2  Prefactor     .10000E-03    54.892       -.30847E-04** at limit **
   3  Prefactor     62.181        135.97       -.63425E-04   -.60506E-04
   4  norm          .10000E-03    2.4274       -.18875E-06** at limit **
   5  norm          3.9415        146.77        .33918E-04    .48963E-04
   6  Prefactor     .10000E-03    33.321        .67878E-05** at limit **
   7  Prefactor     142.45        127.62       -.12802E-04   -.11084E-05
   8  norm          .10000E-03    1.9442        .58804E-07** at limit **
   9  Prefactor     .10000E-03    13.109       -.50822E-07** at limit **
  10  Prefactor     .10001E-03    144.18        .15950E-03** at limit **
  11  Prefactor     .10000E-03    24.639       -.13059E-04** at limit **
  12  norm          8.6419        11.114       -.56013E-06   -.43524E-04
  13  Prefactor     37.208        37.764       -.48128E-05    .16853E-04
  14  Prefactor     1.4150        54.378        .33447E-05   -.13365E-03
  15  Prefactor     1.7937        .61103        .40591E-07    .12721E-03
  16  Prefactor     13.057        15.782       -.50485E-06    .14620E-04
  17  norm          .10000E-03    .82627       -.21670E-08** at limit **
  18  Prefactor     .10000E-03    31.563        .13905E-04** at limit **
  19  Prefactor     .10000E-03    9.1362       -.19252E-07** at limit **
  20  Prefactor     .10000E-03    20.269        .36781E-05** at limit **
  21  Prefactor     3.8316        .58358       -.32163E-07    .72857E-03
  22  Prefactor     .10001E-03    277.51       -.29870E-03** at limit **
  23  Prefactor     6.2924        20.818       -.10697E-05   -.88645E-05
  24  Prefactor     2.7173        88.737       -.40670E-05    .37283E-04
  25  Normalizat    1.9162        .41077        .49915E-05   -.96695E-04
  26  Prefactor     .56337        .18570        .80904E-06    .67314E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.59689
  Prefactor  = 0.0001
  Prefactor  = 62.181
  norm       = 0.0001
  norm       = 3.9415
  Prefactor  = 0.0001
  Prefactor  = 142.451
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 8.64187
  Prefactor  = 37.2085
  Prefactor  = 1.41501
  Prefactor  = 1.79366
  Prefactor  = 13.057
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.8316
  Prefactor  = 0.000100007
  Prefactor  = 6.29235
  Prefactor  = 2.71732
  Normalizat = 1.91618
  Prefactor  = 0.563372
 **********
 **   18 **HESSE 
 **********

 FCN=   4059.396     FROM HESSE     STATUS=OK           452 CALLS     3583 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5969        5.1914        .50711E-03   -1.5088    
   2  Prefactor     .10000E-03    54.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     62.181        133.98        .50863E-04   -1.4129    
   4  norm          .10000E-03    2.4623        .96683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.9415        139.59        .20315E-03   -1.5311    
   6  Prefactor     .10000E-03    33.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     142.45        127.47        .33754E-04   -1.3315    
   8  norm          .10000E-03    3.7822        .16785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    144.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.6419        11.082        .13633E-03   -1.5120    
  13  Prefactor     37.208        38.061        .65691E-04   -1.4487    
  14  Prefactor     1.4150        55.364        .37227E-03   -1.5470    
  15  Prefactor     1.7937        .61581        .25720E-04   -1.5440    
  16  Prefactor     13.057        15.804        .11084E-03   -1.4985    
  17  norm          .10000E-03    .82637        .56561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.1434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.8316        .58779        .17526E-04   -1.5316    
  22  Prefactor     .10001E-03    277.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.2924        20.798        .15998E-03   -1.5206    
  24  Prefactor     2.7173        89.271        .24723E-03   -1.5378    
  25  Normalizat    1.9162        .50619        .34640E-03   -.66668    
  26  Prefactor     .56337        .22564        .27967E-03   -1.0915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2342e-09
Minuit parameter uncertainties:
  1  5.19169
  2  5.08877e-05
  3  134.635
  4  2.89815e-05
  5  47.0318
  6  5.77197e-05
  7  127.713
  8  6.54328e-06
  9  1.91402e-05
  10  0.00174931
  11  1.02279e-05
  12  11.0844
  13  38.0854
  14  17.719
  15  0.615817
  16  15.8089
  17  4.45321e-07
  18  1.10033e-05
  19  8.69508e-06
  20  4.42271e-06
  21  0.587791
  22  0.00286553
  23  20.8221
  24  31.2
  25  0.5076
  26  0.226001
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  3.721e+01  3.809e+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:  5.634e-01  2.260e-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.916e+00  5.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.68
Ra Dec: 335.710 12.157
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 1.27e-07
Energy Flux (Fixed Index): 4.03e-05 +/- 4.13e-05

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

Saving results to:
/scratch/kocevski/279433/likelihoodResults_434505601_434764801_4FGL_J2222.8+1209_daily_bin753.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) = 4059.20986532
delta logL = 0.186099571739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4059.19238671
delta logL = 0.20357818613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.578       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9499       1.0000          .0000       10.000    
     3 'Normalizat'    1.8429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58768       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=   4059.192     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      311 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.580        42.935        .88295E-04    .77577E-04
   2  Index         2.9502        1.1413        .44320E-02    .60446E-04
   3  Normalizat    1.8407        .48916        .35129E-03    .53492E-04
   4  Prefactor     .58876        .22630        .27400E-03    .12323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5797
  Index      = 2.95024
  Normalizat = 1.84065
  Prefactor  = 0.588757
 **********
 **   18 **HESSE 
 **********

 FCN=   4059.192     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.580        34.136        .35318E-05   -1.4800    
   2  Index         2.9502        .90894        .17728E-03   -.42240    
   3  Normalizat    1.8407        .48572        .70259E-04   -.68607    
   4  Prefactor     .58876        .22476        .10960E-04   -1.0806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43723e-11
Minuit parameter uncertainties:
  1  34.1686
  2  0.915069
  3  0.487003
  4  0.2251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279433': 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) = 4059.19237486
delta logL = 0.203590034551

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.058e+01  3.417e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.950e+00  9.151e-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:  5.888e-01  2.251e-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.841e+00  4.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 335.710 12.157
Photon Index (Free Index): 2.95 +/- 0.92
Photon Flux (Free Index): 1.99e-07 +/- 1.84e-07
Energy Flux (Free Index): 4.07e-05 +/- 3.35e-05

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/279433/cmap_HighResolution_434505601_434764801_4FGL_J2222.8+1209_daily_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-02', comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='4.07e-05', photon_flux_error='1.27e-07', dlogl='2.04e-01', energy_flux='4.03e-05', photon_flux2='1.99e-07', job_status='DONE', time_completed='2021-09-28 10:27:45.539386', photon_index_error2='0.92', photon_index2='2.95', ts='1.68', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='3.88e-07', energy_flux_error2='3.35e-05', EG='1.92', time_epoch_completed='1632850065.54', return_code='0', job_id='279433', GAL2='0.59', EG2='1.84', return_code2='0', energy_flux_error='4.13e-05', photon_flux_error2='1.84e-07', ts2='2.13', photon_index='2.41' WHERE bin_id='753' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:27:45 PDT 2021


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

Job <4FGL_J2222.8+1209_daily_bin753> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Sep 28 10:15:49 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:15:51 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:51 2021
Terminated at Tue Sep 28 10:27:46 2021
Results reported at Tue Sep 28 10:27:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin753 335.71 12.1568 434505601 434764801 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 :                                   588.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

