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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin651
RA = 335.71, Dec = 12.1568
tmin = 408067201, tmax = 408326401
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='279286', job_status='RUN', time_executed='2021-09-28 10:18:39.831146', time_epoch_executed='1632849519.83' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279286

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279286/ft1_4FGL_J2222.8+1209_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279286/ft2_4FGL_J2222.8+1209_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279286/ft1_4FGL_J2222.8+1209_daily_bin651.fits outfile=/scratch/kocevski/279286/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin651.fits ra=335.71 dec=12.1568 rad=12.0 tmin=408067201.0 tmax=408326401.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.85
user 3.63
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279286/ft1_filtered_4FGL_J2222.8+1209_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/279286/ft2_4FGL_J2222.8+1209_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/279286/ltcube_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.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/279286/ft2_4FGL_J2222.8+1209_daily_bin651.fits
.....................!
real 11.79
user 11.39
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279286/ft1_filtered_4FGL_J2222.8+1209_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/279286/ft2_4FGL_J2222.8+1209_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/279286/ltcube_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.fits outfile=/scratch/kocevski/279286/expmap_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.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/279286/ltcube_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.fits
.....................!
real 191.51
user 186.02
sys 5.12

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/279286/ft1_filtered_4FGL_J2222.8+1209_daily_bin651.fits scfile=/scratch/kocevski/279286/ft2_4FGL_J2222.8+1209_daily_bin651.fits outfile=/scratch/kocevski/279286/cmap_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.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/279286/ft1_filtered_4FGL_J2222.8+1209_daily_bin651.fits scfile=/scratch/kocevski/279286/ft2_4FGL_J2222.8+1209_daily_bin651.fits outfile=/scratch/kocevski/279286/cmap_HighResolution_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.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/279286/ft1_filtered_4FGL_J2222.8+1209_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/279286/ft2_4FGL_J2222.8+1209_daily_bin651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279286/Model_4FGL_J2222.8+1209_daily_bin651.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/279286/ft1_filtered_4FGL_J2222.8+1209_daily_bin651.fits......!
real 14.28
user 12.96
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/279286/ft1_filtered_4FGL_J2222.8+1209_daily_bin651.fits', '/scratch/kocevski/279286/ft2_4FGL_J2222.8+1209_daily_bin651.fits', expMap='/scratch/kocevski/279286/expmap_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.fits', expCube='/scratch/kocevski/279286/ltcube_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/279286/Model_4FGL_J2222.8+1209_daily_bin651.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/279286/ft1_filtered_4FGL_J2222.8+1209_daily_bin651.fits
Spacecraft file(s): /scratch/kocevski/279286/ft2_4FGL_J2222.8+1209_daily_bin651.fits
Exposure map: /scratch/kocevski/279286/expmap_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.fits
Exposure cube: /scratch/kocevski/279286/ltcube_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/279286/Model_4FGL_J2222.8+1209_daily_bin651.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 85.3073399584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 84.8079378687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3408       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .74760E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46129E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14930       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2942       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4608       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2618       1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.273       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72378       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2745       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43707E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2843       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .43915E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .88334E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7328       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1695       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7569       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2245       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3058       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5145       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1148       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3498       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .42653       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   84.80344     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      270 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3408        1.0023         .0000         .0000    
   2  Prefactor     .37726E-03    .27410        .25298E-03** at limit **
   3  Prefactor     .10041E-03    .21396        .28027E-03** at limit **
   4  norm          .10000E-03    .20571       -.43334E-05** at limit **
   5  norm          .10000E-03    .23735        .45917E-05** at limit **
   6  Prefactor     7.2942        1.0024         .0000         .0000    
   7  Prefactor     7.4608        1.0023         .0000         .0000    
   8  norm          1.2618        1.1146         .0000         .0000    
   9  Prefactor     68.037        .99633       -.62403E-04    .20443E-01
  10  Prefactor     58.065        1.0069        .50028E-04   -.10248E-01
  11  Prefactor     .10000E-03    .36922       -.23824E-04** at limit **
  12  norm          3.2745        1.0122         .0000         .0000    
  13  Prefactor     .15079E-03    .21341        .15918E-02** at limit **
  14  Prefactor     3.2843        1.0121         .0000         .0000    
  15  Prefactor     .10000E-03    .23464        .66065E-05** at limit **
  16  Prefactor     .10094E-03    .22351       -.28987E-03** at limit **
  17  norm          1.7328        1.0492         .0000         .0000    
  18  Prefactor     5.1695        1.0048         .0000         .0000    
  19  Prefactor     1.7569        1.0476         .0000         .0000    
  20  Prefactor     1.2245        1.1261         .0000         .0000    
  21  Prefactor     5.3058        1.0045         .0000         .0000    
  22  Prefactor     .40814E-03    .10373       -.50675E-03** at limit **
  23  Prefactor     1.1148        1.1777         .0000         .0000    
  24  Prefactor     1.3498        1.0938         .0000         .0000    
  25  Normalizat    .10000E-01    .25745       -.31943E-07** at limit **
  26  Prefactor     .42614        .76106        .52305E-04   -.11148E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.34078
  Prefactor  = 0.000377257
  Prefactor  = 0.000100413
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.29419
  Prefactor  = 7.46083
  norm       = 1.26182
  Prefactor  = 68.0373
  Prefactor  = 58.0647
  Prefactor  = 0.000100001
  norm       = 3.27453
  Prefactor  = 0.000150788
  Prefactor  = 3.28429
  Prefactor  = 0.0001
  Prefactor  = 0.000100937
  norm       = 1.73284
  Prefactor  = 5.16945
  Prefactor  = 1.75688
  Prefactor  = 1.2245
  Prefactor  = 5.30577
  Prefactor  = 0.000408135
  Prefactor  = 1.11484
  Prefactor  = 1.34984
  Normalizat = 0.01
  Prefactor  = 0.42614
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   84.80344     FROM HESSE     STATUS=FAILED        11 CALLS      281 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          510.47        503.09         .0000       -1.5166    
   2  Prefactor     .37726E-03    .27410        .25298E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10041E-03    .21396        .28027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .20571       -.43334E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .23735        .45917E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2942        1.0024         .0000       -1.5168    
   7  Prefactor     7.4608        1.0023         .0000       -1.5162    
   8  norm          1.2618        1.1146         .0000       -1.5483    
   9  Prefactor     68.037        .99633       -.62403E-04   -1.4056    
  10  Prefactor     58.065        1.0069        .50028E-04   -1.4182    
  11  Prefactor     .10000E-03    .36922       -.23824E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2745        1.0122         .0000       -1.5346    
  13  Prefactor     .15079E-03    .21341        .15918E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2843        1.0121         .0000       -1.5345    
  15  Prefactor     .10000E-03    .23464        .66065E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10094E-03    .22351       -.28987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7328        1.0492         .0000       -1.5445    
  18  Prefactor     5.1695        1.0048         .0000       -1.5253    
  19  Prefactor     1.7569        1.0476         .0000       -1.5443    
  20  Prefactor     1.2245        1.1261         .0000       -1.5487    
  21  Prefactor     5.3058        1.0045         .0000       -1.5247    
  22  Prefactor     .40814E-03    .10373       -.50675E-03   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1148        1.1777         .0000       -1.5497    
  24  Prefactor     1.3498        1.0938         .0000       -1.5476    
  25  Normalizat    .10000E-01    .25745       -.31943E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .42614        .76106        .52305E-04   -1.1549    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.00439e-09
Minuit parameter uncertainties:
  1  1.00234
  2  0.0174353
  3  0.000594249
  4  4.87295e-06
  5  8.17213e-06
  6  1.00237
  7  1.00226
  8  1.11462
  9  0.996335
  10  1.00689
  11  4.11244e-05
  12  1.01216
  13  0.00658447
  14  1.01208
  15  9.4623e-06
  16  0.000915094
  17  1.04924
  18  1.00475
  19  1.04765
  20  1.12614
  21  1.00451
  22  0.0113071
  23  1.17773
  24  1.09381
  25  3.29568e-07
  26  0.780326
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 84.8034389566

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.508e-04  6.584e-03  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:  4.261e-01  7.803e-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.000e-02  3.296e-07  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.40e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279286/likelihoodResults_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.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) = 84.8034456953
delta logL = -6.73876068902e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 84.8034462793
delta logL = -7.32267456272e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96018E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4068       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42585       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=   84.80344     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      212 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1385.3        .90746E-02** at limit **
   2  Index         2.3781        6.1724        .50000        .34313E-06
   3  Normalizat    .10000E-01    .31955E-02    .11894    ** at limit **
   4  Prefactor     .42614        .18153E-01    .28959E-01    .15105E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.37806
  Normalizat = 0.01
  Prefactor  = 0.426145
 **********
 **   18 **HESSE 
 **********

 FCN=   84.80344     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      243 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7799.5        .18149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3781        5.8532        .50000       -.55200    
   3  Normalizat    .10000E-01    .17072E-01    .50934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .42614        .40552E-01    .12796E-03   -1.1549    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.46184e-08
Minuit parameter uncertainties:
  1  0.0136147
  2  3270.07
  3  1.16455e-07
  4  0.0405547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279286': 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) = 84.8034389179
delta logL = 3.86441456612e-08

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.361e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.378e+00  3.270e+03  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:  4.261e-01  4.055e-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:  1.000e-02  1.165e-07  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/279286/cmap_HighResolution_408067201_408326401_4FGL_J2222.8+1209_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e+00', job_status='DONE', photon_flux_upper_limit='1.40e-05', time_completed='2021-09-28 10:23:55.823202', job_id='279286', GAL2='0.43', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632849835.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.43', dlogl='3.86e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='651' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:23:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 279286: <4FGL_J2222.8+1209_daily_bin651> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin651 335.71 12.1568 408067201 408326401 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 :                                   316.35 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             307.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   498 sec.
    Turnaround time :                            500 sec.

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

