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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin370
RA = 335.71, Dec = 12.1568
tmin = 335232001, tmax = 335491201
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='277865', job_status='RUN', time_executed='2021-09-28 10:14:35.088609', time_epoch_executed='1632849275.09' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277865/ft1_4FGL_J2222.8+1209_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277865/ft2_4FGL_J2222.8+1209_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277865/ft1_4FGL_J2222.8+1209_daily_bin370.fits outfile=/scratch/kocevski/277865/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin370.fits ra=335.71 dec=12.1568 rad=12.0 tmin=335232001.0 tmax=335491201.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.77
user 3.53
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277865/ft1_filtered_4FGL_J2222.8+1209_daily_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/277865/ft2_4FGL_J2222.8+1209_daily_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/277865/ltcube_335232001_335491201_4FGL_J2222.8+1209_daily_bin370.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/277865/ft2_4FGL_J2222.8+1209_daily_bin370.fits
.....................!
real 11.84
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277865/ft1_filtered_4FGL_J2222.8+1209_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/277865/ft2_4FGL_J2222.8+1209_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/277865/ltcube_335232001_335491201_4FGL_J2222.8+1209_daily_bin370.fits outfile=/scratch/kocevski/277865/expmap_335232001_335491201_4FGL_J2222.8+1209_daily_bin370.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/277865/ltcube_335232001_335491201_4FGL_J2222.8+1209_daily_bin370.fits
.....................!
real 189.72
user 185.40
sys 3.90

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277865/ft1_filtered_4FGL_J2222.8+1209_daily_bin370.fits scfile=/scratch/kocevski/277865/ft2_4FGL_J2222.8+1209_daily_bin370.fits outfile=/scratch/kocevski/277865/cmap_HighResolution_335232001_335491201_4FGL_J2222.8+1209_daily_bin370.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.019       1.0000         .10000E-03   10000.    
     2 'Prefactor '    76.120       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.1334       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5415       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4619       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7395       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.0017       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6188       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2158       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0987       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7579       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3321       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13520       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99037       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84183       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=   6776.005     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3044 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.019        3.8027       -.66671E-08    .31529E-04
   2  Prefactor     76.104        89.702       -.36972E-05   -.12790E-03
   3  Prefactor     .10001E-03    46.082       -.55950E-05** at limit **
   4  norm          3.1343        2.9160        .37551E-06   -.16704E-03
   5  norm          .10000E-03    8.1955        .13266E-05** at limit **
   6  Prefactor     5.5439        50.201        .14019E-05    .23369E-04
   7  Prefactor     .10000E-03    21.756       -.26394E-05** at limit **
   8  norm          2.4619        1.1474        .64834E-08   -.90284E-04
   9  Prefactor     .10002E-03    29.189        .73804E-05** at limit **
  10  Prefactor     9.7320        22.151       -.10827E-05   -.13541E-03
  11  Prefactor     .10000E-03    9.2173       -.15263E-05** at limit **
  12  norm          8.0025        6.1119        .64218E-07   -.74174E-04
  13  Prefactor     .10000E-03    10.330        .12267E-05** at limit **
  14  Prefactor     .10000E-03    10.541        .18848E-05** at limit **
  15  Prefactor     1.6188        .29348       -.40931E-08   -.44828E-03
  16  Prefactor     2.2163        6.3547        .57811E-06   -.10558E-03
  17  norm          2.0990        2.4411        .10920E-06   -.14622E-03
  18  Prefactor     .10000E-03    8.7452       -.17250E-05** at limit **
  19  Prefactor     5.7576        11.180        .48655E-07   -.30523E-04
  20  Prefactor     3.3322        9.0402        .67178E-05   -.68562E-03
  21  Prefactor     .13520        .92426E-01   -.30761E-07   -.41702E-03
  22  Prefactor     .10000E-03    14.300       -.11708E-05** at limit **
  23  Prefactor     .10000E-03    2.7617       -.22213E-07** at limit **
  24  Prefactor     .10000E-03    3.7673       -.78700E-08** at limit **
  25  Normalizat    .99030        .22793       -.34227E-07   -.93773E-04
  26  Prefactor     .84182        .12093       -.14753E-06   -.11207E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0189
  Prefactor  = 76.1041
  Prefactor  = 0.000100014
  norm       = 3.1343
  norm       = 0.000100001
  Prefactor  = 5.54388
  Prefactor  = 0.000100003
  norm       = 2.46192
  Prefactor  = 0.00010002
  Prefactor  = 9.73195
  Prefactor  = 0.000100001
  norm       = 8.0025
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 1.61881
  Prefactor  = 2.21634
  norm       = 2.09903
  Prefactor  = 0.000100001
  Prefactor  = 5.7576
  Prefactor  = 3.3322
  Prefactor  = 0.135205
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.9903
  Prefactor  = 0.841819
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.005     FROM HESSE     STATUS=OK           458 CALLS     3502 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.019        3.7918        .76662E-04   -1.4959    
   2  Prefactor     76.104        90.801        .23012E-03   -1.3961    
   3  Prefactor     .10001E-03    47.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1343        2.9246        .11584E-03   -1.5354    
   5  norm          .10000E-03    8.2745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5439        49.783        .17067E-03   -1.5237    
   7  Prefactor     .10000E-03    22.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4619        1.1429        .57105E-04   -1.5394    
   9  Prefactor     .10002E-03    31.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.7320        22.248        .12840E-03   -1.5084    
  11  Prefactor     .10000E-03    9.3110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.0025        6.1155        .14174E-03   -1.5142    
  13  Prefactor     .10000E-03    10.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6188        .29501        .17821E-04   -1.5453    
  16  Prefactor     2.2163        6.3461        .27629E-03   -1.5410    
  17  norm          2.0990        2.4125        .12181E-03   -1.5418    
  18  Prefactor     .10000E-03    8.8645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7576        11.094        .16738E-03   -1.5228    
  20  Prefactor     3.3322        9.6179        .11087E-02   -1.5343    
  21  Prefactor     .13520        .91825E-01    .19889E-04   -1.5634    
  22  Prefactor     .10000E-03    14.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.7814        .13358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.7708        .15604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99030        .27172        .33260E-03   -.93356    
  26  Prefactor     .84182        .14481        .19408E-03   -.98205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21109e-09
Minuit parameter uncertainties:
  1  3.79191
  2  90.9672
  3  0.00162173
  4  2.92471
  5  0.000156163
  6  33.2624
  7  0.000524922
  8  1.14289
  9  0.0015884
  10  22.2674
  11  0.000196378
  12  6.11596
  13  0.000158334
  14  0.000239757
  15  0.295008
  16  6.34806
  17  2.41265
  18  0.000214716
  19  11.0977
  20  9.62236
  21  0.0918246
  22  0.000186259
  23  1.80298e-06
  24  7.67794e-07
  25  0.272104
  26  0.144875
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.583e-04  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:  8.418e-01  1.449e-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.903e-01  2.721e-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: 9.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277865/likelihoodResults_335232001_335491201_4FGL_J2222.8+1209_daily_bin370.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) = 6776.00559263
delta logL = -0.000456183593997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6776.00513655
delta logL = -9.92531568045e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4174       1.0000          .0000       10.000    
     3 'Normalizat'    .99019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84189       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=   6776.005     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.327        .90712E-02** at limit **
   2  Index         2.4282        6.2139        .50000       -.95379E-05
   3  Normalizat    .99030        .21815        .75162E-01    .27070E-04
   4  Prefactor     .84182        .11905        .44260E-01    .18047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4282
  Normalizat = 0.990301
  Prefactor  = 0.841819
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.005     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1165.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4282        8.6788        .50000       -.54026    
   3  Normalizat    .99030        .69633E-01    .33260E-03   -.93356    
   4  Prefactor     .84182        .38030E-01    .19408E-03   -.98205    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.33872e-09
Minuit parameter uncertainties:
  1  0.000124571
  2  46.0907
  3  0.0696395
  4  0.0380311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277865': 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) = 6776.00513641
delta logL = 4.51809683e-08

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.246e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.428e+00  4.609e+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:  8.418e-01  3.803e-02  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  9.903e-01  6.964e-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/277865/cmap_HighResolution_335232001_335491201_4FGL_J2222.8+1209_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', job_status='DONE', photon_flux_upper_limit='9.77e-08', time_completed='2021-09-28 10:26:50.688271', job_id='277865', GAL2='0.84', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632850010.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='370' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:26:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 277865: <4FGL_J2222.8+1209_daily_bin370> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin370 335.71 12.1568 335232001 335491201 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 :                                   735.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

