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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin409
RA = 335.71, Dec = 12.1568
tmin = 345340801, tmax = 345600001
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='277921', job_status='RUN', time_executed='2021-09-28 10:13:06.365550', time_epoch_executed='1632849186.37' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277921/ft1_4FGL_J2222.8+1209_daily_bin409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277921/ft2_4FGL_J2222.8+1209_daily_bin409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277921/ft1_4FGL_J2222.8+1209_daily_bin409.fits outfile=/scratch/kocevski/277921/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin409.fits ra=335.71 dec=12.1568 rad=12.0 tmin=345340801.0 tmax=345600001.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.67
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277921/ft1_filtered_4FGL_J2222.8+1209_daily_bin409.fits" evtable="EVENTS" scfile=/scratch/kocevski/277921/ft2_4FGL_J2222.8+1209_daily_bin409.fits sctable="SC_DATA" outfile=/scratch/kocevski/277921/ltcube_345340801_345600001_4FGL_J2222.8+1209_daily_bin409.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/277921/ft2_4FGL_J2222.8+1209_daily_bin409.fits
.....................!
real 11.94
user 11.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277921/ft1_filtered_4FGL_J2222.8+1209_daily_bin409.fits evtable="EVENTS" scfile=/scratch/kocevski/277921/ft2_4FGL_J2222.8+1209_daily_bin409.fits sctable="SC_DATA" expcube=/scratch/kocevski/277921/ltcube_345340801_345600001_4FGL_J2222.8+1209_daily_bin409.fits outfile=/scratch/kocevski/277921/expmap_345340801_345600001_4FGL_J2222.8+1209_daily_bin409.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/277921/ltcube_345340801_345600001_4FGL_J2222.8+1209_daily_bin409.fits
.....................!
real 192.07
user 187.22
sys 4.30

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/277921/ft1_filtered_4FGL_J2222.8+1209_daily_bin409.fits scfile=/scratch/kocevski/277921/ft2_4FGL_J2222.8+1209_daily_bin409.fits outfile=/scratch/kocevski/277921/cmap_345340801_345600001_4FGL_J2222.8+1209_daily_bin409.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9510       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.407       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1519       1.0000         .10000E-03   10000.    
     5 'norm      '    17.773       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18154E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.789       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7205       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8935       1.0000         .10000E-03   10000.    
    12 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.477       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .67678       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35313E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0735       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.025       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15668       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15283E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.8883       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75183       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1089       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=   7627.397     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3224 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9524        3.3442        .20689E-06    .14400E-02
   2  Prefactor     42.423        65.610        .95625E-05    .19362E-03
   3  Prefactor     .10000E-03    22.315       -.80530E-06** at limit **
   4  norm          1.1520        3.2353       -.68665E-06   -.25498E-03
   5  norm          17.767        25.916       -.15609E-05   -.71206E-04
   6  Prefactor     .10334E-03    39.359       -.52924E-05** at limit **
   7  Prefactor     28.778        56.151        .12548E-05    .79667E-04
   8  norm          1.7204        1.0425        .21278E-07    .76542E-03
   9  Prefactor     .10000E-03    5.3309        .24060E-07** at limit **
  10  Prefactor     .32432        16.037       -.12509E-05    .14312E-03
  11  Prefactor     8.8895        23.017       -.14991E-05   -.51534E-04
  12  norm          .10000E-03    2.2452       -.62651E-07** at limit **
  13  Prefactor     .10000E-03    15.667       -.13836E-05** at limit **
  14  Prefactor     20.476        12.328       -.91190E-07    .24078E-04
  15  Prefactor     .67689        .24224       -.25419E-07   -.35504E-02
  16  Prefactor     .10008E-03    6.0952        .19423E-05** at limit **
  17  norm          2.0744        1.7000       -.78995E-08   -.83954E-04
  18  Prefactor     .10000E-03    14.900        .13499E-05** at limit **
  19  Prefactor     .10000E-03    27.626        .11426E-05** at limit **
  20  Prefactor     16.031        14.347        .15905E-05    .23077E-03
  21  Prefactor     .15669        .11035       -.12584E-07   -.52173E-03
  22  Prefactor     .10000E-03    170.37        .34260E-05** at limit **
  23  Prefactor     .10000E-03    3.9319       -.21388E-06** at limit **
  24  Prefactor     2.8896        4.1358        .71134E-06   -.71588E-03
  25  Normalizat    .75157        .24253        .85470E-06    .11750E-03
  26  Prefactor     1.1090        .12522       -.32813E-06    .24980E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.95243
  Prefactor  = 42.4228
  Prefactor  = 0.0001
  norm       = 1.15199
  norm       = 17.767
  Prefactor  = 0.000103338
  Prefactor  = 28.7784
  norm       = 1.7204
  Prefactor  = 0.0001
  Prefactor  = 0.324317
  Prefactor  = 8.88949
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.476
  Prefactor  = 0.676891
  Prefactor  = 0.000100077
  norm       = 2.07441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0314
  Prefactor  = 0.156695
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 2.88964
  Normalizat = 0.751574
  Prefactor  = 1.10901
 **********
 **   18 **HESSE 
 **********

 FCN=   7627.397     FROM HESSE     STATUS=OK           482 CALLS     3706 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9524        3.3578        .11606E-03   -1.5263    
   2  Prefactor     42.423        65.884        .61559E-04   -1.4404    
   3  Prefactor     .10000E-03    22.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1520        3.1337        .20769E-03   -1.5493    
   5  norm          17.767        25.028        .95004E-04   -1.4865    
   6  Prefactor     .10334E-03    34.990        .12529       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.778        56.204        .74669E-04   -1.4635    
   8  norm          1.7204        1.0337        .66057E-04   -1.5446    
   9  Prefactor     .10000E-03    5.3328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .32432        17.939        .11493       -1.5594    
  11  Prefactor     8.8895        23.016        .13440E-03   -1.5112    
  12  norm          .10000E-03    14.073        .25440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.476        12.351        .88512E-04   -1.4803    
  15  Prefactor     .67689        .23509        .23476E-04   -1.5543    
  16  Prefactor     .10008E-03    24.845        .38443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0744        1.6934        .99888E-04   -1.5420    
  18  Prefactor     .10000E-03    14.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.031        14.349        .10005E-03   -1.4907    
  21  Prefactor     .15669        .10544        .23219E-03   -1.5629    
  22  Prefactor     .10000E-03    172.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.771        .33273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.8896        9.4122        .11956E-02   -1.5368    
  25  Normalizat    .75157        .27414        .39896E-03   -1.0189    
  26  Prefactor     1.1090        .14349        .18092E-03   -.89179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25659e-09
Minuit parameter uncertainties:
  1  3.35795
  2  65.9978
  3  6.11178e-05
  4  3.13419
  5  25.0425
  6  0.0216269
  7  56.3075
  8  1.03372
  9  3.71989e-06
  10  4.82481
  11  23.0391
  12  0.000124264
  13  9.78214e-05
  14  12.3524
  15  0.235089
  16  0.00277049
  17  1.69347
  18  9.38447e-05
  19  8.38851e-05
  20  14.3517
  21  0.105443
  22  0.000716265
  23  0.000250876
  24  9.41704
  25  0.274642
  26  0.143541
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  9.782e-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:  1.109e+00  1.435e-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:  7.516e-01  2.746e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277921/likelihoodResults_345340801_345600001_4FGL_J2222.8+1209_daily_bin409.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) = 7627.39731659
delta logL = -0.00030105906535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7627.39701561
delta logL = -8.0200152297e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4150       1.0000          .0000       10.000    
     3 'Normalizat'    .75148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1091       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=   7627.397     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.222        .90712E-02** at limit **
   2  Index         2.4227        6.2006        .50000       -.41300E-05
   3  Normalizat    .75157        .46330E-02    .90064E-01    .44538E-04
   4  Prefactor     1.1090        .25192E-02    .37252E-01    .15121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42274
  Normalizat = 0.751573
  Prefactor  = 1.10901
 **********
 **   18 **HESSE 
 **********

 FCN=   7627.397     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    139.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4227        8.2419        .50000       -.54154    
   3  Normalizat    .75157        .16340E-01    .39896E-03   -1.0189    
   4  Prefactor     1.1090        .89093E-02    .18092E-03   -.89179    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.452e-07
Minuit parameter uncertainties:
  1  0.000105787
  2  391.875
  3  0.0163403
  4  0.00890934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277921': 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) = 7627.39701551
delta logL = 1.60225681611e-08

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.058e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.423e+00  3.919e+02  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:  1.109e+00  8.909e-03  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:  7.516e-01  1.634e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/277921/cmap_HighResolution_345340801_345600001_4FGL_J2222.8+1209_daily_bin409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-28 10:26:15.057536', job_id='277921', GAL2='1.11', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632849975.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='409' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 277921: <4FGL_J2222.8+1209_daily_bin409> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin409 335.71 12.1568 345340801 345600001 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 :                                   783.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

